Return-Path: X-Original-To: apmail-subversion-commits-archive@minotaur.apache.org Delivered-To: apmail-subversion-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7F8B710121 for ; Wed, 21 Aug 2013 20:10:14 +0000 (UTC) Received: (qmail 64806 invoked by uid 500); 21 Aug 2013 20:10:14 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 64693 invoked by uid 500); 21 Aug 2013 20:10:12 -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 64685 invoked by uid 99); 21 Aug 2013 20:10:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Aug 2013 20:10:11 +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, 21 Aug 2013 20:10:08 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id E23CF2388900; Wed, 21 Aug 2013 20:09:47 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1516285 - /subversion/trunk/subversion/tests/cmdline/lock_tests.py Date: Wed, 21 Aug 2013 20:09:47 -0000 To: commits@subversion.apache.org From: philip@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20130821200947.E23CF2388900@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: philip Date: Wed Aug 21 20:09:47 2013 New Revision: 1516285 URL: http://svn.apache.org/r1516285 Log: Add a regression test for locks on copy source. * subversion/tests/cmdline/lock_tests.py (copy_with_lock): New. (test_list): Add new test. Modified: subversion/trunk/subversion/tests/cmdline/lock_tests.py Modified: subversion/trunk/subversion/tests/cmdline/lock_tests.py URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/lock_tests.py?rev=1516285&r1=1516284&r2=1516285&view=diff ============================================================================== --- subversion/trunk/subversion/tests/cmdline/lock_tests.py (original) +++ subversion/trunk/subversion/tests/cmdline/lock_tests.py Wed Aug 21 20:09:47 2013 @@ -1889,6 +1889,36 @@ def drop_locks_on_parent_deletion(sbox): None, wc_dir) + +def copy_with_lock(sbox): + """copy with lock on source""" + + sbox.build() + wc_dir = sbox.wc_dir + lock_url = sbox.repo_url + '/A/B/E/alpha' + + svntest.actions.run_and_validate_lock(lock_url, svntest.main.wc_author) + sbox.simple_copy('A/B/E', 'A/B/E2') + + expected_output = svntest.wc.State(wc_dir, { + 'A/B/E2' : Item(verb='Adding'), + }) + expected_status = svntest.actions.get_virginal_state(wc_dir, 1) + expected_status.tweak('A/B/E/alpha', writelocked='O') + expected_status.add({ + 'A/B/E2' : Item(status=' ', wc_rev=2), + 'A/B/E2/alpha' : Item(status=' ', wc_rev=2), + 'A/B/E2/beta' : Item(status=' ', wc_rev=2), + }) + + # This is really a regression test for httpd: 2.2.25 and 2.4.6 have + # a bug that causes mod_dav to check for locks on the copy source + # and so the commit fails. + svntest.actions.run_and_verify_commit(wc_dir, + expected_output, + expected_status, + None, + wc_dir) ######################################################################## # Run the tests @@ -1943,6 +1973,7 @@ test_list = [ None, lock_unlock_deleted, commit_stolen_lock, drop_locks_on_parent_deletion, + copy_with_lock, ] if __name__ == '__main__':