On Fri, 2009-08-14 at 19:56 -0500, Eduardo Cavazos wrote: > > On Fri, 2009-08-14 at 18:44 -0500, Eduardo Cavazos wrote: > >> Hello, > >> > >> This web page has a nice listing of recent revisions in the Ikarus > >> development tree: > >> > >> http://bazaar.launchpad.net/~aghuloum/ikarus/ikarus.dev/changes > >> > >> If I go to my local Ikarus repository: > >> > >> cd /src/ikarus.dev > >> > >> What 'bzr' command can I issue here to get the tree back to one of those > >> listed revisions? > > Derick Eddington wrote: > > > bzr revert -r REVISION > > > > You may also find > > > > bzr export -r REVISION DESTINATION > > > > useful for working with temporary copies of a tree. > > > > See 'bzr help', 'bzr help COMMAND', and/or 'man bzr' for the details. > > Thanks Derick! > > At some point when I do 'bzr update' to pull in the latest and greatest, > do I have to do anything to tell it to switch to the latest revision? Or > will it happen with the update? I'm guessing there's a way to say > "switch to HEAD" or whatever it is in bzr land.
'bzr export' makes a non-versioned copy of only the files/dirs registered in a repository. The copy is not a Bazaar branch and so no 'bzr' operations can be performed on it. 'bzr update' will fetch the latest changes while still preserving any local changes. It will alert you to possible conflicts between the new changes and local changes, which you have to manually resolve. 'bzr revert' on a branch modifies the files/dirs so that they're identical to the specified revision, but the branch is still considered to be at the revision it previously was; in other words, it's like you locally modified all the files/dirs to be identical to the reverted revision. 'bzr update' will not undo a revert, it will just tell you that you're already at the latest revision. To undo a revert, do 'bzr revert' (without any specified revision) and it reverts to the revision the branch is at. 'bzr revert' is also used to undo any local changes. When I'm unsure of how Bazaar works, I make a 'cp -a' copy of a branch and try it on that first. -- : Derick ----------------------------------------------------------------
