Return-Path: Delivered-To: apmail-subversion-commits-archive@minotaur.apache.org Received: (qmail 42187 invoked from network); 31 Mar 2011 09:55:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 31 Mar 2011 09:55:33 -0000 Received: (qmail 84520 invoked by uid 500); 31 Mar 2011 09:55:33 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 84497 invoked by uid 500); 31 Mar 2011 09:55:33 -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 84490 invoked by uid 99); 31 Mar 2011 09:55:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Mar 2011 09:55:33 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.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; Thu, 31 Mar 2011 09:55:31 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id D086A2388A3C; Thu, 31 Mar 2011 09:55:09 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1087230 - /subversion/trunk/subversion/libsvn_wc/cleanup.c Date: Thu, 31 Mar 2011 09:55:09 -0000 To: commits@subversion.apache.org From: danielsh@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110331095509.D086A2388A3C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: danielsh Date: Thu Mar 31 09:55:09 2011 New Revision: 1087230 URL: http://svn.apache.org/viewvc?rev=1087230&view=rev Log: Revert r1087131. Modified: subversion/trunk/subversion/libsvn_wc/cleanup.c Modified: subversion/trunk/subversion/libsvn_wc/cleanup.c URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/cleanup.c?rev=1087230&r1=1087229&r2=1087230&view=diff ============================================================================== --- subversion/trunk/subversion/libsvn_wc/cleanup.c (original) +++ subversion/trunk/subversion/libsvn_wc/cleanup.c Thu Mar 31 09:55:09 2011 @@ -87,6 +87,8 @@ cleanup_internal(svn_wc__db_t *db, /* Can we even work with this directory? */ SVN_ERR(can_be_cleaned(&wc_format, db, adm_abspath, iterpool)); + /* ### This fails if ADM_ABSPATH is locked indirectly via a + ### recursive lock on an ancestor. */ SVN_ERR(svn_wc__db_wclock_obtain(db, adm_abspath, -1, TRUE, iterpool)); /* Run our changes before the subdirectories. We may not have to recurse @@ -143,10 +145,6 @@ svn_wc_cleanup3(svn_wc_context_t *wc_ctx NULL /* ### config */, TRUE, FALSE, scratch_pool, scratch_pool)); - /* Always cleanup from the wc root, even when invoked on child. */ - SVN_ERR(svn_wc__db_get_wcroot(&local_abspath, db, local_abspath, - scratch_pool, scratch_pool)); - SVN_ERR(cleanup_internal(db, local_abspath, cancel_func, cancel_baton, scratch_pool));