You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by rh...@apache.org on 2013/02/05 15:58:45 UTC
svn commit: r1442616 -
/subversion/trunk/subversion/tests/cmdline/basic_tests.py
Author: rhuijben
Date: Tue Feb 5 14:58:45 2013
New Revision: 1442616
URL: http://svn.apache.org/viewvc?rev=1442616&view=rev
Log:
* subversion/tests/cmdline/basic_tests.py
(basic_delete): Following up on r1442611, tweak to also try deleting
an unmodified added and copied directory.
Modified:
subversion/trunk/subversion/tests/cmdline/basic_tests.py
Modified: subversion/trunk/subversion/tests/cmdline/basic_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/basic_tests.py?rev=1442616&r1=1442615&r2=1442616&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/basic_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/basic_tests.py Tue Feb 5 14:58:45 2013
@@ -1052,6 +1052,10 @@ def basic_delete(sbox):
sbox.build()
wc_dir = sbox.wc_dir
+ # Copies of unmodified
+ sbox.simple_copy('iota', 'iota-copied')
+ sbox.simple_copy('A/B/F', 'F-copied')
+
# modify text of chi
chi_parent_path = sbox.ospath('A/D/H')
chi_path = os.path.join(chi_parent_path, 'chi')
@@ -1094,9 +1098,11 @@ def basic_delete(sbox):
expected_output.tweak('A/D/G/rho', 'A/B/F', status=' M')
# expected_output.tweak('A/C/sigma', status='? ')
expected_output.add({
- 'A/B/X' : Item(status='A ', wc_rev=0),
- 'A/B/X/xi' : Item(status='A ', wc_rev=0),
- 'A/D/Y' : Item(status='A ', wc_rev=0),
+ 'A/B/X' : Item(status='A ', wc_rev='-'),
+ 'A/B/X/xi' : Item(status='A ', wc_rev='-'),
+ 'A/D/Y' : Item(status='A ', wc_rev='-'),
+ 'F-copied' : Item(status='A ', copied='+', wc_rev='-'),
+ 'iota-copied' : Item(status='A ', copied='+', wc_rev='-'),
})
svntest.actions.run_and_verify_status(wc_dir, expected_output)
@@ -1153,8 +1159,10 @@ def basic_delete(sbox):
'rm', '--force', X_path)
# Deleting an unchanged copy shouldn't error.
- sbox.simple_copy('iota', 'iota2')
- svntest.main.run_svn(None, 'rm', sbox.ospath('iota2'))
+ sbox.simple_mkdir('Z-added')
+ svntest.main.run_svn(None, 'rm', sbox.ospath('iota-copied'),
+ sbox.ospath('F-copied'),
+ sbox.ospath('Z-added'))
# Deleting already removed from wc versioned item with --force
iota_path = sbox.ospath('iota')