Removing a revision from the repository...

Sam's Lists samslists at gmail.com
Wed May 2 08:03:23 BST 2007


Thank you for the response.  I did the uncommit and then the clean up you
recommended and it worked like a charm!

Perhaps the next version will even have a "bzr cleanup" that automates the
above!  :)

Thanks again

On 5/1/07, John Arbash Meinel <john at arbash-meinel.com> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> 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 http://bazaar-vcs.org/BzrPlugins, the source is at:
> http://people.samba.org/bzr/jelmer/bzr-remove-revisions/trunk/
> )
>
> John
> =:->
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.3 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFGN8Y1JdeBCYSNAAMRAuTJAKDDxc/8Ox5kkq0cfKGB6j8178CrTgCffdSa
> 6MZrOJQjJ17pq0BOF87AbRE=
> =KfXo
> -----END PGP SIGNATURE-----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/bazaar/attachments/20070502/5ca46722/attachment.htm 


More information about the bazaar mailing list