Bazaar experimental branch removal

Brian de Alwis bsd at cs.ubc.ca
Mon Jan 26 19:32:57 GMT 2009


On Tue, 6 May 2008 23:31:50 +0200 (CEST) Guido Ostkamp <bazaar at ostkamp.fastmail.fm 
 > wrote:
>   $ 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.
>

[...]
> How can I do this with Bazaar?

Easy: just rm -rf the X-crazy-idea directory.

$ bzr info
Repository tree (format: unnamed)
Location:
   shared repository: .
   repository branch: .
$ du -ks
245192	.
$ bzr branch trunk foo
Branched 118 revision(s).
$ du -ks
257884	.
$ rm -rf foo
$ du -ks
245192	.

If you've made commits in X-crazy-idea, those commits will still be in  
your repository.

Brian.

-- 
"Amusement to an observing mind is study." - Benjamin Disraeli




More information about the bazaar mailing list