Return-Path: Delivered-To: apmail-subversion-commits-archive@minotaur.apache.org Received: (qmail 38190 invoked from network); 29 Oct 2010 17:15:56 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Oct 2010 17:15:56 -0000 Received: (qmail 63069 invoked by uid 500); 29 Oct 2010 17:15:56 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 63043 invoked by uid 500); 29 Oct 2010 17:15:56 -0000 Mailing-List: contact commits-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@subversion.apache.org Delivered-To: mailing list commits@subversion.apache.org Received: (qmail 63036 invoked by uid 99); 29 Oct 2010 17:15:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Oct 2010 17:15:56 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Oct 2010 17:15:53 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 607BC23888DD; Fri, 29 Oct 2010 17:14:56 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1028855 - in /subversion/trunk/subversion/libsvn_wc: workqueue.c workqueue.h Date: Fri, 29 Oct 2010 17:14:56 -0000 To: commits@subversion.apache.org From: julianfoad@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101029171456.607BC23888DD@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: julianfoad Date: Fri Oct 29 17:14:56 2010 New Revision: 1028855 URL: http://svn.apache.org/viewvc?rev=1028855&view=rev Log: * subversion/libsvn_wc/workqueue.h, subversion/libsvn_wc/workqueue.c (svn_wc__wq_build_prej_install): Say it how it is: Document the conflict parameter as modifiable and remove its 'const' qualifier, to match the implementation, and stop casting away 'const' internally. Modified: subversion/trunk/subversion/libsvn_wc/workqueue.c subversion/trunk/subversion/libsvn_wc/workqueue.h Modified: subversion/trunk/subversion/libsvn_wc/workqueue.c URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/workqueue.c?rev=1028855&r1=1028854&r2=1028855&view=diff ============================================================================== --- subversion/trunk/subversion/libsvn_wc/workqueue.c (original) +++ subversion/trunk/subversion/libsvn_wc/workqueue.c Fri Oct 29 17:14:56 2010 @@ -1858,7 +1858,7 @@ svn_error_t * svn_wc__wq_build_prej_install(svn_skel_t **work_item, svn_wc__db_t *db, const char *local_abspath, - const svn_skel_t *conflict_skel, + svn_skel_t *conflict_skel, apr_pool_t *result_pool, apr_pool_t *scratch_pool) { @@ -1868,8 +1868,7 @@ svn_wc__wq_build_prej_install(svn_skel_t SVN_ERR_ASSERT(conflict_skel != NULL); if (conflict_skel != NULL) - /* ### woah! this needs to dup the skel into RESULT_POOL */ - svn_skel__prepend((svn_skel_t *)conflict_skel, *work_item); + svn_skel__prepend(conflict_skel, *work_item); svn_skel__prepend_str(apr_pstrdup(result_pool, local_abspath), *work_item, result_pool); svn_skel__prepend_str(OP_PREJ_INSTALL, *work_item, result_pool); Modified: subversion/trunk/subversion/libsvn_wc/workqueue.h URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/workqueue.h?rev=1028855&r1=1028854&r2=1028855&view=diff ============================================================================== --- subversion/trunk/subversion/libsvn_wc/workqueue.h (original) +++ subversion/trunk/subversion/libsvn_wc/workqueue.h Fri Oct 29 17:14:56 2010 @@ -162,14 +162,22 @@ svn_wc__wq_build_sync_file_flags(svn_ske /* Set *WORK_ITEM to a new work item that will install a property reject - file for LOCAL_ABSPATH into the working copy. The propety conflicts will - be taken from CONFLICT_SKEL, or if NULL, then from wc_db for the - given DB/LOCAL_ABSPATH. */ + file for LOCAL_ABSPATH into the working copy. The property conflicts will + be taken from CONFLICT_SKEL. + + ### Caution: Links CONFLICT_SKEL into the *WORK_ITEM, which involves + modifying *CONFLICT_SKEL. + + ### TODO: Make CONFLICT_SKEL 'const' and dup it into RESULT_POOL. + + ### TODO: If CONFLICT_SKEL is NULL, take property conflicts from wc_db + for the given DB/LOCAL_ABSPATH. + */ svn_error_t * svn_wc__wq_build_prej_install(svn_skel_t **work_item, svn_wc__db_t *db, const char *local_abspath, - const svn_skel_t *conflict_skel, + svn_skel_t *conflict_skel, apr_pool_t *result_pool, apr_pool_t *scratch_pool);