How do I update a working tree to an old revision?

Vincent Ladeuil v.ladeuil+lp at free.fr
Fri Jul 17 10:57:02 BST 2009


>>>>> "Nicholas" == Nicholas Allen <nick.allen at onlinehome.de> writes:

    >> >>     >> bzr pull --overwrite -rxxx
    >> >>     >> in a clean tree should do it.
    >> >>     Nicholas> But won't that delete the revision from
    >> the repository too?
    >> 
    >> There is no way you can delete a revision from the
    >> repository. You may lose the ability to use the revnos 

    Nicholas> Sorry, I realize that. I meant it would change the tip revision
    Nicholas> that the branch points to. The revisions are still in the
    Nicholas> repository but to use them I need to then refer to revids in the
    Nicholas> repository. I agree it's the best workaround but it is pretty
    Nicholas> awkward and clumsy...

Ok, I agree we should have 'bzr update -r', but yet, I don't see
what is wrong here if you have one branch somewhere that you
refer to from your local working tree, branch:

bzr branch <trunk> work
cd work
bzr pull --overwrite -r <revno>
test, that works
bzr pull --overwrite -r <another-revno> 
test, that fails
bzr pull --overwrite -r <yet-another-revno> 

The revnos used by pull refers to <trunk> not your local branch,
so it doesn't matter if the local tip is changed.

What's the problem here ? Do you use a setup I don't understand
that makes the above impossible ?

       Vincent



More information about the bazaar mailing list