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 2011/05/05 11:31:05 UTC
svn commit: r1099735 -
/subversion/trunk/subversion/tests/cmdline/copy_tests.py
Author: rhuijben
Date: Thu May 5 09:31:05 2011
New Revision: 1099735
URL: http://svn.apache.org/viewvc?rev=1099735&view=rev
Log:
Add a tescase for a bad example of issue #2763 and #3314.
* subversion/tests/cmdline/copy_tests.py
(copy_wc_url_with_absent): New test, marked as XFail.
Modified:
subversion/trunk/subversion/tests/cmdline/copy_tests.py
Modified: subversion/trunk/subversion/tests/cmdline/copy_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/copy_tests.py?rev=1099735&r1=1099734&r2=1099735&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/copy_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/copy_tests.py Thu May 5 09:31:05 2011
@@ -4961,6 +4961,44 @@ def move_wc_and_repo_dir_to_itself(sbox)
'.*Cannot move URL.* into itself.*',
'move', repo_url, repo_url)
+@XFail()
+@Issues(2763,3314)
+def copy_wc_url_with_absent(sbox):
+ "copy wc to url with several absent children"
+ sbox.build()
+
+ # A/B a normal delete
+ sbox.simple_rm('A/B')
+
+ # A/no not-present but there
+ sbox.simple_copy('A/mu', 'A/no')
+ sbox.simple_commit('A/no')
+ svntest.main.run_svn(None, 'up', '-r', '1', sbox.ospath('A/no'))
+
+ # A/mu not-present
+ sbox.simple_rm('A/mu')
+ sbox.simple_commit('A/mu')
+
+ # A/D excluded
+ svntest.main.run_svn(None, 'up', '--set-depth', 'exclude',
+ os.path.join(sbox.wc_dir, 'A/D'))
+
+ # Test issue #3314 after copy ### Currently fails with out of date
+ sbox.simple_copy('A', 'A_copied')
+ svntest.main.run_svn(None, 'ci', os.path.join(sbox.wc_dir, 'A_copied'),
+ '-m', 'Commit A_copied')
+
+ # This tests issue #2763 ### Currently fails with out of date
+ svntest.main.run_svn(None, 'cp', os.path.join(sbox.wc_dir, 'A'),
+ '^/A_tagged', '-m', 'Tag A')
+
+ # And perform a normal commit
+ svntest.main.run_svn(None, 'ci', os.path.join(sbox.wc_dir, 'A'),
+ '-m', 'Commit A')
+
+ # TODO: Verify that A_copied and A_tagged show up like A without mu.
+
+
########################################################################
# Run the tests
@@ -5064,6 +5102,7 @@ test_list = [ None,
copy_wc_over_deleted_same_kind,
copy_wc_over_deleted_other_kind,
move_wc_and_repo_dir_to_itself,
+ copy_wc_url_with_absent,
]
if __name__ == '__main__':