[RFC] switch --relocate (Was: Re: What to do if VC-ROOT changes after checkout?)

Jan Hudec bulb at ucw.cz
Sat Nov 18 17:25:52 GMT 2006

On Sat, Nov 18, 2006 at 04:26:36PM +0200, Jari Aalto wrote:
> Suppose this:
>         Person (b):
>         $ checkout VC-ROOT
>         $ ... update, commit, fo work
> Now suppose that the original location VC-ROOT no longer exists. The
> maintainer(a) had decided that the directory location is now elsewhere.
> Person(b) has uncommitted changes, but is unable to ci, because (a)
> has changed the directory location.
> If there were:
>         bzr admin --checkout --new-url <new location>
>             =====
>             For other admin type command now and in the future.
> This would just do the right thing and person b could continue as usual
> after the pointer to checkout location had been updated.

Subversion uses the command 'svn switch --relocate' in such case.
Or even switch should probably work in such case without special option,
because if target branch contains current revision of the checkout, it
can take it from there and not open the original branch at all.
Maybe switch should be integrated to mainline.

                  				- Jan Hudec `Bulb' <bulb at ucw.cz>

More information about the bazaar mailing list