[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: Max Bowsher <maxb_at_ukf.net>
Date: 2004-05-13 21:37:59 CEST

SteveKing wrote:
> Ben Collins-Sussman wrote:
>
>>> So my suggestion is that the relocate only takes one argument (the "to"
>>> URL).
>>
>> We're going in circles here. If you ask perl to 's/X/Y/', but only give
>> Y, how is it supposed to guess at X?
>
> Ok, I'm obviously not very good at making myself clear. So I'll try to
> explain with some pseudo-code:
>
> right now, the relocate command does something like this:
> fromURL = userinput1;
> toURL = userinput2;
> svn_client_relocate(currentdirectory, fromURL, toURL);
>
> what I suggest is this:
>
> wcURL = svn_client_url_from_path(currentdirectory);
> fromURL = wcURL;
> toURL = userinput;
> svn_client_relocate(currentdirectory, fromURL, toURL);
>
> I hope this describes more clear of what I have in mind.
>
> Stefan

Stefan,

The problem here is that Ben and I have been attempting to help you to understand the current functionality whilst you seem to be
simultaneously proposing new functionality.

We can all agree that invalid input to svn switch --relocate should cause an error, not break the working copy.

If you really think that the syntax for switch --relocate should be changed, it would be best to start a new thread with a more
appropriate subject, as that would require discussion of the design and thoughts about compatibility guarantees.

Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu May 13 21:38:32 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.