[RFC] Implementation of "update -r " (was Re: switch to a past revision)

Matthieu Moy Matthieu.Moy at imag.fr
Fri Aug 4 18:09:15 BST 2006


Matthieu Moy <Matthieu.Moy at imag.fr> writes:

> Quoting Robert Collins <robertc at robertcollins.net>:
>
>> On Wed, 2006-08-02 at 17:24 +1000, Martin Pool wrote:
>> 
>> > It's be good to fix.  I agree 'update -r' would be the way to do it.  It
>> > should be really trivial as all the underlying machinery in workingtree
>> > is already there as far as I know.
>> 
>> FWIW, bug # 45719 - https://launchpad.net/products/bzr/+bug/45719
>
> Attached is a draft implementation.
>
> It's not _as_ simple as I thought, because of the number of configurations in
> which "update" can be ran with bound branch.
>
> It passes selftest, but still needs some tests of its own. It can probably be
> improved much.

I've added testcases for this.

Branch available here :

http://www-verimag.imag.fr/~moy/bzr/bzr/bzr.update-r/

It's probably not yet perfect, but I've worked on it a bit, it's not
really a draft anymore.

BTW, similar thing should be done for "switch" in bzrtools.

-- 
Matthieu




More information about the bazaar mailing list