<p>Thanks, guys. You're right, and I apologize for the noise. I was so sure that I had a heavy co that I didn't see what bzr was telling me. Thanks for putting me straight.</p>
<p>Carlos</p>
<div class="gmail_quote">On Aug 8, 2012 2:04 AM, "John Arbash Meinel" <<a href="mailto:john@arbash-meinel.com">john@arbash-meinel.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
On 8/8/2012 10:54 AM, Alexander Belchenko wrote:<br>
> Carlos Mundi пишет:<br>
>><br>
>> Hi,<br>
>><br>
>> Now that I'm a little wiser (thanks to Max) I will re-ask my<br>
>> question.<br>
>><br>
>> I have a heavyweight checkout of a branch. The branch has "gone<br>
>> away." I would like to 'unbind' my checkout so that I can 'push'<br>
>> it to a new branch. But 'bzr unbind' fails with... wait for<br>
>> it.... a "dangling branch reference" message. So how can I sever<br>
>> this dangling branch reference so that my checkout acts like a<br>
>> regular branch? A bzr built-in command would be great, but I am<br>
>> happy to follow filesystem-level procedures. (On a copy of the<br>
>> checkout folder of course!)<br>
><br>
> With bzr 2.5.1 I don't have error on unbind when master branch is<br>
> gone away, but maybe you have something special in your case.<br>
><br>
> You should be able to edit .bzr/branch/branch.conf and change<br>
> option "bound" to False:<br>
><br>
> bound = False<br>
><br>
> (for heavyweight checkout it should be set to True).<br>
<br>
If I followed the other thread, he doesn't actually have a<br>
'heavyweight' checkout, but a lightweight one.<br>
<br>
If I do:<br>
<br>
bzr branch bzr.dev test<br>
bzr co --lightweight test light<br>
bzr co test heavy<br>
rm -rf heavy<br>
<br>
And then I do 'bzr info' in both of them:<br>
<br>
light $ bzr info<br>
Dangling branch reference (format: 2a or pack-0.92)<br>
Location:<br>
control directory: .<br>
checkout of branch: D:/dev/bzr/test<br>
<br>
heavy $ bzr info<br>
Repository checkout (format: 2a)<br>
Location:<br>
repository checkout root: .<br>
checkout of branch: D:/dev/bzr/test<br>
shared repository: D:/dev/bzr<br>
<br>
Note that you only get 'Dangling branch reference' when you have a<br>
lightweight checkout. (And you can't 'unbind' a lightweight checkout,<br>
as there is no local branch.)<br>
<br>
<br>
Is there anything in: /var/repos/project/trunk/<br>
Such as /var/repos/project?<br>
<br>
Or is that all the stuff that got deleted?<br>
<br>
<br>
If you did have a heavyweight checkout, it wouldn't be hard to create<br>
a new shared repository. However, from all accounts you don't have a<br>
heavy (ie history-copying) checkout.<br>
<br>
John<br>
=:-><br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.12 (Cygwin)<br>
Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org/" target="_blank">http://enigmail.mozdev.org/</a><br>
<br>
iEYEARECAAYFAlAiK64ACgkQJdeBCYSNAAPCtwCcDEJp6e8qEkAGyZsYEJMJBacR<br>
LkIAoIWL5tgMeZ3pteuGDv8yqg1HcM+X<br>
=gUr7<br>
-----END PGP SIGNATURE-----<br>
</blockquote></div>