[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: relocate doesn't check arguments - may screw up working copy

From: SteveKing <steveking_at_gmx.ch>
Date: 2004-05-13 19:06:03 CEST

Ben Collins-Sussman wrote:

>> But you would have to specify the full URL to the new repository
>>for that to work:
>>svn switch --relocate http://server2.com/repos
>>would then read the "from" URL from the working copy where the command
>>was executed and substitute that with the "to" URL.
>
>
> This is bad and dangerous: we cannot just assume X is the entire URL
> stored in the working copy. If the user accidentally types the full Y
> URL incorrectly, then they may end up changing the 2nd half of the URL,
> when they only meant to change the 1st half.

AFAIK if the full Y URL is incorrect, then the command will fail anyway
since it can't contact the new repository. Just try the relocate with a
"to" URL which doesn't have a repository or where the server isn't
reachable.

Stefan

--
It's not the fall that kills you: it's the sudden stop - Down by Law, 
Jim Jamursch (1986)
--
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu May 13 19:08:50 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.