Switching a lightweight checkout when current bound branch no longer exists

Gordon Tyler gordon.tyler at gmail.com
Thu Jul 15 14:44:51 BST 2010


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

On 7/15/2010 8:54 AM, 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?

Hmm... After reading the help, I see that it preserves uncommitted
changes (unless --force is used). That would require knowledge of the
current branch, so I can see why.


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

iQEcBAEBAgAGBQJMPxDTAAoJEIrPJfWinA2uT+0IAInm7Oj7MGWWpch4ot2zaxSZ
aLitTqiV/QsugwRCjyNcIDZ61fPlFQ78kWHSspKesFgyx8ISleVoWYO0a7RYa1AW
aWY6fe0TEJX5SitnaiJRn6UjUoWJ6a/UcQthAQRIBGRMMx0LtLIh0wfZ0BL2u5Cs
DVndxYN4d0kOwQyMP2mtQYS7IdZl6HRNCThNsEq03JCuL/D8NwOeW6t04KgSVNzJ
yMOMvbgItKlLzoByDpEPl92cEGAzt1yU6MmnLSEjWnfbZ3MMmqrnEqRy3OUo+jTx
DqNOQahIVYnQAfDDeMylIhCsn1DBj02ZTJBgFe54qprcoPHpLpbBO+XwaiAiC74=
=gL+P
-----END PGP SIGNATURE-----



More information about the bazaar mailing list