How to fix "dangling branch reference"

Alexander Belchenko bialix at ukr.net
Wed Aug 8 08:54:36 UTC 2012


Carlos Mundi пишет:
> 
> Hi,
> 
> Now that I'm a little wiser (thanks to Max) I will re-ask my question.
> 
> I have a heavyweight checkout of a branch.  The branch has "gone away." 
>  I would like to 'unbind' my checkout so that I can 'push' it to a new 
> branch.  But 'bzr unbind'  fails with... wait for it.... a "dangling 
> branch reference" message.  
> 
> So how can I sever this dangling branch reference so that my checkout 
> acts like a regular branch?  A bzr built-in command would be great, but 
> I am happy to follow filesystem-level procedures.  (On a copy of the 
> checkout folder of course!)

With bzr 2.5.1 I don't have error on unbind when master branch is gone 
away, but maybe you have something special in your case.

You should be able to edit .bzr/branch/branch.conf and change option 
"bound" to False:

bound = False

(for heavyweight checkout it should be set to True).





More information about the bazaar mailing list