Removing a revision from the repository...

John Arbash Meinel john at
Tue May 1 23:59:01 BST 2007

Hash: SHA1

Sam's Lists wrote:
> Somehow due to some run-away process one of my logs had an extra 5 million
> lines it that shouldn't have been there.  This got committed as revision
> 67.  I've also committed a revision 68 with those lines deleted.
> Now, unfortunately my .bzr directory is much larger than it should be.  I'd
> like to eradicate revision 67---perhaps make it seem like it's never
> existed.
> How can I do this?
> Thanks!

As long as it is relatively new, you can "bzr uncommit -r 66". And then
you could create a new commit 67.

This won't clean up your local repository, but it means that people who
branch from you will not pull the extra data.

If you want to clean up your local repository you can:

bzr branch . ../temp
mv .bzr .bzr-tmp
mv ../temp/.bzr .

Note that if you are using a (local) shared repository, this gets a bit
trickier and you have to do it a little bit differently.

You may want to look at the "remove-revisions" plugin from Jelmer. (It
can be found on, the source is at:

Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla -


More information about the bazaar mailing list