Return-Path: Delivered-To: apmail-subversion-commits-archive@minotaur.apache.org Received: (qmail 54897 invoked from network); 9 Mar 2011 11:31:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Mar 2011 11:31:01 -0000 Received: (qmail 73426 invoked by uid 500); 9 Mar 2011 11:31:01 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 73408 invoked by uid 500); 9 Mar 2011 11:31:01 -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 73400 invoked by uid 99); 9 Mar 2011 11:31:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Mar 2011 11:31:01 +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; Wed, 09 Mar 2011 11:31:00 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 8697F23889B9; Wed, 9 Mar 2011 11:30:40 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1079754 - in /subversion/trunk/subversion: libsvn_wc/wc-queries.sql tests/cmdline/svnversion_tests.py Date: Wed, 09 Mar 2011 11:30:40 -0000 To: commits@subversion.apache.org From: stsp@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110309113040.8697F23889B9@eris.apache.org> Author: stsp Date: Wed Mar 9 11:30:40 2011 New Revision: 1079754 URL: http://svn.apache.org/viewvc?rev=1079754&view=rev Log: Follow-up to r1079594, fix detection of local deletions in revision status. * subversion/tests/cmdline/svnversion_tests.py (svnversion_with_structural_changes): Expand this test to cover deletions. * subversion/libsvn_wc/wc-queries.sql (STMT_SELECT_NODES_WITH_TREE_MODIFICATIONS): Include nodes with presence 'base-deleted' in the result of this query. Found by: rhuijben Modified: subversion/trunk/subversion/libsvn_wc/wc-queries.sql subversion/trunk/subversion/tests/cmdline/svnversion_tests.py Modified: subversion/trunk/subversion/libsvn_wc/wc-queries.sql URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/wc-queries.sql?rev=1079754&r1=1079753&r2=1079754&view=diff ============================================================================== --- subversion/trunk/subversion/libsvn_wc/wc-queries.sql (original) +++ subversion/trunk/subversion/libsvn_wc/wc-queries.sql Wed Mar 9 11:30:40 2011 @@ -889,7 +889,8 @@ WHERE wc_id = ?1 AND (local_relpath = ?2 SELECT local_relpath FROM nodes WHERE wc_id = ?1 AND (local_relpath = ?2 OR local_relpath LIKE ?3 ESCAPE '#') AND op_depth > 0 - AND (presence = 'normal' OR presence = 'incomplete') + AND (presence = 'normal' OR presence = 'incomplete' OR + presence = 'base-deleted') AND file_external IS NULL; /* Grab all the statements related to the schema. */ Modified: subversion/trunk/subversion/tests/cmdline/svnversion_tests.py URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/svnversion_tests.py?rev=1079754&r1=1079753&r2=1079754&view=diff ============================================================================== --- subversion/trunk/subversion/tests/cmdline/svnversion_tests.py (original) +++ subversion/trunk/subversion/tests/cmdline/svnversion_tests.py Wed Mar 9 11:30:40 2011 @@ -254,6 +254,7 @@ def svnversion_with_structural_changes(s wc_dir = sbox.wc_dir repo_url = sbox.repo_url + # Test a copy iota_path = os.path.join(wc_dir, 'iota') iota_copy_path = os.path.join(wc_dir, 'iota_copy') @@ -277,6 +278,19 @@ def svnversion_with_structural_changes(s [ "Uncommitted local addition, " "copy or move\n" ], []) + sbox.simple_commit() + + # Test deletion + sbox.simple_rm('iota') + svntest.actions.run_and_verify_svnversion("Deleted file", + sbox.ospath('iota'), + repo_url + '/iota', + [], + [ "'%s' doesn't exist\n" % \ + sbox.ospath('iota')], + ) + svntest.actions.run_and_verify_svnversion("Deleted file", wc_dir, repo_url, + [ "1:2M\n" ], []) ######################################################################## # Run the tests