Bazaar experimental branch removal

Colin D Bennett colin at gibibit.com
Mon Jan 26 18:57:57 GMT 2009


On Tue, 6 May 2008 23:31:50 +0200 (CEST)
Guido Ostkamp <bazaar at ostkamp.fastmail.fm> wrote:

> Hello,
> 
> I've been reading through the Bazaar user guide (I'm new to Bazaar, but a 
> bit familiar with Git and Mercurial).
> 
> It appears the "Mirror branch" concept described in chapter 6.2 in the 
> user's guide will serve me best because I can save disk space if I use a 
> top-level repository with a nested main mirror branch like with
> 
>    $ bzr init-repo X-repo
>    $ cd X-repo
>    $ bzr branch sftp://centralhost/srv/bzr/X-repo/X-trunk
>    $ bzr branch X-trunk X-crazy-idea
>    $ cd X-crazy-idea
>      (hack, hack, hack)
> 
> Unfortunately I could not find info how I can get totally rid off such an 
> 'crazy-idea' branch and recover all the disk space required for any of its 
> commits, when it becomes clear that the stuff will not be used any longer.
> 
> With 'git' I could easily use 'git branch -D X-crazy-idea'.
> 
> How can I do this with Bazaar?

I think Bazaar needs a 'garbage collect' function ('bzr gc' command)
that will remove revision data that is no longer used by any branch in
the repository (or standalone branch).

I recall this issue has been raised several times before.  I have
wished for this myself, in fact.

Regards,
Colin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090126/8568a05f/attachment.pgp 


More information about the bazaar mailing list