[[[ Add regression test for issue #3068. * subversion/tests/cmdline/copy_tests.py (allow_unversioned_parent_for_copy_src): New test for issue #3068. (test_list): Run it. Suggested by: glasser ]]] Index: subversion/tests/cmdline/copy_tests.py =================================================================== --- subversion/tests/cmdline/copy_tests.py (revision 28830) +++ subversion/tests/cmdline/copy_tests.py (working copy) @@ -3699,6 +3699,27 @@ copy_URL_to_WC('A', 'A COPY', 2) copy_URL_to_WC('A COPY', 'A_COPY_2', 3) +#---------------------------------------------------------------------- +# In 'svn cp foo/bar foo2/bar2', 'foo' need not be a working copy. +def allow_unversioned_parent_for_copy_src(sbox): + "issue #3068: copy source parent may be unversioned" + + sbox.build() + wc_dir = sbox.wc_dir + + # Make the "other" working copy + wc2_dir = sbox.add_wc_path('other') + svntest.actions.duplicate_dir(wc_dir, wc2_dir) + + # Attempt a copy between different repositories. + svntest.actions.run_and_verify_svn(None, + None, + [], + 'cp', + os.path.join(wc2_dir), + os.path.join(wc_dir, 'A', 'copy_of_wc2')) + + ######################################################################## # Run the tests @@ -3773,6 +3794,7 @@ copy_make_parents_wc_repo, copy_make_parents_repo_repo, URI_encoded_repos_to_wc, + allow_unversioned_parent_for_copy_src, ] if __name__ == '__main__':