subversion-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julian Foad <>
Subject Bugs in svn copy URL1 URL2 WC
Date Fri, 09 Nov 2018 16:22:10 GMT
Some bugs in "svn copy URL1 URL2 WC".
These examples are in a WC checked out from

$ svn copy
svn: E170000: Illegal repository URL ''

The problem is in repos_to_wc_copy(): we calculate a 'top_src_url' as the longest common ancestor
of the source URLs. When they have no common ancestor (in this example, http: vs. https:),
this error results.

$ svn copy notes/
svn: E170013: Unable to connect to a repository at URL ''
svn: E175003: The server at '' does not support the HTTP/DAV protocol

A similar failure mode. In this example, the longest common ancestor is a valid URL but is
not a repository.

$ svn cp ^/apr/examples ^/subversion/README notes/
A    notes/examples/trunk
A    ...
svn: E170000: '' isn't a child of session
URL ''

This example fails after copying the first source, because repos_to_wc_copy_single() has re-parented
the session to point to the URL it used, and the caller didn't expect that.


For the first two cases, I propose that svn should require the copy sources are all in the
same repository, and error out if not. And document the requirement in the API docs and 'svn
help copy'.

For the third case, I propose we should fix the bug.

All these cases need tests.

- Julian

View raw message