Go back to old revision in Bazaar

knub picture knub · Mar 13, 2012 · Viewed 10.9k times · Source

I want to go back in my bazaar history (change working tree) to find the commit that introduced a certain bug.

I do not want to delete any commits, just change my working tree until I found the bug, and then I want to go back to the latest revision to work on.

What are the two commands for that (going back to an earlier commit and afterwards checking out the latest revision again)?

Thanks in advance.

Answer

jelmer picture jelmer · Mar 13, 2012

To revert the working tree back to a specific revision N:

bzr revert -rN

To revert the working tree to the latest revision in the branch:

bzr revert