You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ph...@apache.org on 2011/10/25 15:59:53 UTC
svn commit: r1188662 -
/subversion/trunk/subversion/tests/cmdline/copy_tests.py
Author: philip
Date: Tue Oct 25 13:59:52 2011
New Revision: 1188662
URL: http://svn.apache.org/viewvc?rev=1188662&view=rev
Log:
Add an XFail regression test for issue 4026.
* subversion/tests/cmdline/copy_tests.py
(wc_wc_copy_incomplete): New.
(test_list) Add new test.
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=1188662&r1=1188661&r2=1188662&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/copy_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/copy_tests.py Tue Oct 25 13:59:52 2011
@@ -5545,6 +5545,36 @@ def commit_deleted_half_of_move(sbox):
svntest.actions.run_and_verify_svn(None, None, expected_error,
'commit', '-m', 'foo', A_path)
+@Issue(4026)
+@XFail()
+def wc_wc_copy_incomplete(sbox):
+ "wc-to-wc copy of an incomplete directory"
+
+ sbox.build(read_only=True)
+ wc_dir = sbox.wc_dir
+
+ svntest.actions.set_incomplete(sbox.ospath('A/B/E'), 1)
+
+ # Copy fails with no changes to wc
+ svntest.actions.run_and_verify_svn(None, None,
+ 'svn: E155035: Cannot handle status',
+ 'copy',
+ sbox.ospath('A/B/E'),
+ sbox.ospath('A/B/E2'))
+ expected_status = svntest.actions.get_virginal_state(wc_dir, 1)
+ expected_status.tweak('A/B/E', status='! ')
+ svntest.actions.run_and_verify_status(wc_dir, expected_status)
+
+ # Issue 4026, this asserts
+ svntest.actions.run_and_verify_svn(None, None,
+ 'svn: E155035: Cannot handle status',
+ 'copy',
+ sbox.ospath('A/B'),
+ sbox.ospath('A/B2'))
+
+ ### Tweak status if some of B has been copied?
+ svntest.actions.run_and_verify_status(wc_dir, expected_status)
+
########################################################################
# Run the tests
@@ -5657,6 +5687,7 @@ test_list = [ None,
copy_deleted_dir,
commit_copied_half_of_move,
commit_deleted_half_of_move,
+ wc_wc_copy_incomplete,
]
if __name__ == '__main__':