Switching a lightweight checkout when current bound branch no longer exists

John Arbash Meinel john at arbash-meinel.com
Thu Jul 15 14:00:16 BST 2010


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

Brian de Alwis wrote:
> On 15-Jul-2010, at 8:40 AM, Gordon Tyler wrote:
>> On 7/15/2010 2:58 AM, John Arbash Meinel wrote:
>>>> bzr: ERROR: Not a branch: "/path/to/orig/branch"
>>> I believe '--force' might get you what you want.
>> Why does bzr care if the original branch exists? All it's doing is
>> finding the parent (which is a string operation) and then looking for
>> the new branch.
> 
> Wouldn't bzr need to know the corresponding revision of the working tree?
> 
> Brian.
> 

We store the revision of the working tree in the working tree data.

The primary reason we open the original branch is internal code
structure. Where opening a WT opens its associated branch. Other than
that, I don't think we would really need to open the old location.

John
=:->

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

iEYEARECAAYFAkw/BmAACgkQJdeBCYSNAAPkAwCgp6Bl3d7vudZNZaT1Laz2fFUC
OIgAniekUh1biDKr++vAth9dGzKt9nz2
=Ob+y
-----END PGP SIGNATURE-----



More information about the bazaar mailing list