Bazaar experimental branch removal
Guido Ostkamp
bazaar at ostkamp.fastmail.fm
Tue May 6 22:31:50 BST 2008
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?
It's clear to me that if I wouldn't use top-level repositories with nested
branches, but two independent branches instead like
$ cd /somewhere
$ bzr branch sftp://centralhost/srv/bzr/X-repo/X-trunk
$ bzr branch X-trunk X-crazy-idea
I could remove the 'X-crazy-idea' directory alltogether, but then I cannot
save the space as 'X-crazy-idea' will need the same full copy of the
project history as X-trunk, as long as it exists.
Thanks for any insight.
Regards
Guido
More information about the bazaar
mailing list