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

Re: [PATCH] Make vanilla switch capable of changing the repository root

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Fri, 29 Aug 2008 14:40:40 +0100

On Fri, 2008-08-29 at 09:17 -0400, C. Michael Pilato wrote:
> Vlad Georgescu wrote:
> > My intention is to remove a limitation of 'svn switch' which would
> > cover 95% of the use cases for relocate, with a simpler UI. "svn
> > switch --relocate" will still be there to cover the remaining 5%
> > (though I'd prefer to move it to a different subcommand to make it
> > less confusing).
>
> +1 on 'svn switch' being more powerful, '--relocate' being deprecated, and
> 'svn relocate' just being at all.

Sanity check. (I haven't followed this thread carefully and the proposal
is not clear from the quote.)

Are you saying:

  * "svn relocate" will be the new official name for the feature that is
currently called "svn switch --relocate"; (sounds OK)

  * "svn switch --relocate" will be deprecated in favour of "svn
relocate"; (sounds OK)

  * "svn switch" will quietly perform an "svn relocate" or a current
"svn switch" or both, depending on the URL it is given?

May I ask, is it anticipated that people will often want to do both
things (switch to a different branch, and move their repository) at the
same time? I wouldn't have thought so, but, the way I read it, it looks
like the above proposal is designed to simplify that use case (by making
"svn switch" do both at once.

Also, what will be the standard way to do a relocate? "svn switch" or
"svn relocate"? We need one standard way.

May I recommend that we do EITHER but not both of:

  * add "svn relocate" and deprecate "--relocate" as above, but do not
let plain "switch" do relocations; or

  * make "svn switch" perform a switch or a relocation depending on the
URL, and deprecate "--relocate" in favour of plain "svn switch".

In the latter case, I'd strongly recommend not allowing an attempt to do
both switch and relocate at once: throw an error in that case, as it's
too likely that the user made a mistake.

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-08-29 15:41:07 CEST

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.