You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by da...@apache.org on 2010/10/22 21:12:14 UTC
svn commit: r1026454 -
/subversion/trunk/subversion/tests/cmdline/switch_tests.py
Author: danielsh
Date: Fri Oct 22 19:12:14 2010
New Revision: 1026454
URL: http://svn.apache.org/viewvc?rev=1026454&view=rev
Log:
Follow-up to r1026434:
* subversion/tests/cmdline/switch_tests.py
(relocate_URL_prefix): New test.
(test_list): Run it, passing.
Modified:
subversion/trunk/subversion/tests/cmdline/switch_tests.py
Modified: subversion/trunk/subversion/tests/cmdline/switch_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/switch_tests.py?rev=1026454&r1=1026453&r2=1026454&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/switch_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/switch_tests.py Fri Oct 22 19:12:14 2010
@@ -3123,6 +3123,22 @@ def relocate_with_relative_externals(sbo
svntest.actions.run_and_verify_info([{ 'URL' : '.*.other/A/D/G$' }],
os.path.join(wc_dir, 'A', 'B', 'G-ext'))
+# Regression test for a functionality we all like
+def relocate_URL_prefix(sbox):
+ "relocate with URL prefixes"
+ sbox.build(read_only = True)
+ repo_url = sbox.repo_url
+ wc_dir = sbox.wc_dir
+
+ ### Someday, try this with argv[1] != argv[2].
+ scheme = repo_url[0 : repo_url.index('://')+3]
+ svntest.actions.run_and_verify_svn(None, None, [], 'switch', '--relocate',
+ scheme, scheme, wc_dir)
+ scheme = repo_url[0 : 14]
+ svntest.actions.run_and_verify_svn(None, None, [], 'switch', '--relocate',
+ scheme, scheme, wc_dir)
+
+
########################################################################
# Run the tests
@@ -3169,6 +3185,7 @@ test_list = [ None,
relocate_with_switched_children,
XFail(copy_with_switched_subdir),
XFail(relocate_with_relative_externals),
+ relocate_URL_prefix,
]
if __name__ == '__main__':