bzr clone, pull, revert

Gary van der Merwe garyvdm at gmail.com
Sun Feb 15 20:55:33 GMT 2009


On Sun, Feb 15, 2009 at 9:22 PM, Gerry Reno <greno at verizon.net> wrote:
> I have not used bzr very long and I'm having trouble figuring out how to
> clone from a project, later pull to stay current, locate a specific
> revision that is tagged, revert to this tagged revision, then pull my
> copy current again with the project.
>
> bzr clone http://.....  # project
> <time goes by>
> bzr pull  # want to stay current
> bzr revno
> 1727
> bzr tags
> 5.0.0-2   1715
> 5.0.0-3   1725
> bzr revert -r tag:5.0.0-3   # want to work with this tagged version
> M bin/release.py
> M setup.py
> bzr diff -r 1725 setup.py
> # no diff, good
> # DO STUFF WITH revno 1725
> bzr pull --overwrite   # here is where I thought this would make all files
> current again with project
> bzr diff -r 1725 setup.py
> # hmm.. bad,  Should be at 1727 and different.


When you did :
> bzr revert -r tag:5.0.0-3
You changed your working tree, but not the tip revision. To get the wt
back to the latest revisions, just do:
> bzr revert

When would you use pull --overwrite : if you have committed your own
changes, or you have merged and committed some other changes, and you
want to discard toughs changes.

Gary



More information about the bazaar mailing list