New branch created accidentally

Ewan Milne ewan at calenture.org
Wed Jan 26 09:48:59 UTC 2011


On 1/25/2011 7:06 PM, Eric Siegerman wrote:
> On Tue, 2011-01-25 at 23:25 +0100, Danny van Heumen wrote:
> How about the Shared Repository use-case?
>> I'm curious how deleted branches are handled and how much information
>> remains (if any) in case the branch was using a shared repository.
>
> *All* of the revision data stays in the shared repo.  A branch
> within a shared repo is essentially just a pointer to its head
> revision within the repo's revision store; deleting the branch
> gets rid of the pointer, but Bazaar never garbage-collects the
> now-unreferenced revisions.

One specific corner case: if one has a shared repo, location <repo>,
and a branch below <branch>, then one accidentally pushes to <repo>
instead of <repo>/<branch>. This results in a new branch created in
the same location as <repo>, so the new branch can't be removed by
deleting the directory. I think that deleting the <repo>/.bzr/branch
directory will remove the branch - is that correct?



More information about the bazaar mailing list