You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2015/01/27 12:27:37 UTC
svn commit: r1655011 -
/subversion/branches/pin-externals/subversion/tests/cmdline/externals_tests.py
Author: stsp
Date: Tue Jan 27 11:27:37 2015
New Revision: 1655011
URL: http://svn.apache.org/r1655011
Log:
On the pin-externals branch, extend the regression test.
* subversion/tests/cmdline/externals_tests.py
(copy_pin_externals): Test copying from an old revision with pinning.
Modified:
subversion/branches/pin-externals/subversion/tests/cmdline/externals_tests.py
Modified: subversion/branches/pin-externals/subversion/tests/cmdline/externals_tests.py
URL: http://svn.apache.org/viewvc/subversion/branches/pin-externals/subversion/tests/cmdline/externals_tests.py?rev=1655011&r1=1655010&r2=1655011&view=diff
==============================================================================
--- subversion/branches/pin-externals/subversion/tests/cmdline/externals_tests.py (original)
+++ subversion/branches/pin-externals/subversion/tests/cmdline/externals_tests.py Tue Jan 27 11:27:37 2015
@@ -3726,6 +3726,29 @@ def copy_pin_externals(sbox):
last_changed_rev_A = 6
verify_pinned_externals(wc_dir)
+ # Clean up.
+ svntest.actions.run_and_verify_svn(None, None, [],
+ 'revert', '-R', wc_dir)
+ svntest.main.safe_rmtree(os.path.join(wc_dir, 'A_copy'))
+
+ # Resurrect A/D in HEAD so the next test can refer to A/D externals.
+ svntest.actions.run_and_verify_svn(None, None, [],
+ 'copy',
+ '-m', 'resurrect A/D',
+ repo_url + '/A/D@6',
+ repo_url + '/A/D',
+ '--pin-externals')
+ # Test a copy from an old revision with pinning.
+ svntest.actions.run_and_verify_svn(None, None, [],
+ 'copy',
+ wc_dir + '/A@6',
+ wc_dir + '/A_copy',
+ '--pin-externals')
+ last_changed_rev_gamma = 1
+ A_copy_D_path = 'A_copy/D'
+ external_url_for["A/B/gamma"] = '^/A/D/gamma'
+ verify_pinned_externals(wc_dir)
+
########################################################################
# Run the tests