New branch created accidentally

John Arbash Meinel john at arbash-meinel.com
Wed Jan 26 16:52:23 UTC 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 1/26/2011 3:48 AM, Ewan Milne wrote:
> 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?
> 
> 

Correct.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1AUUcACgkQJdeBCYSNAAP/BACeN8aY1vca/oEHI6+WxVSOPtEx
gosAoNUVpTTh3S9MhIw30qEoBgMWCJIm
=HxHT
-----END PGP SIGNATURE-----



More information about the bazaar mailing list