Switching a lightweight checkout when current bound branch no longer exists

Nicholas Allen nick at bitwig.com
Thu Jul 15 08:06:32 BST 2010


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

Thanks John that is exactly what I was looking for ;-)

Nick

John Arbash Meinel wrote:
> Nicholas Allen wrote:
>> Hi,
>
>> I was using a lightweight checkout of a branch which I then
>> deleted (as it had been merged to trunk). I then tried to switch
>> my lightweight checkout to a new branch but I got this error:
>
>> bzr: ERROR: Not a branch: "/path/to/orig/branch"
>
>> I guess this makes sense but Bazaar could be more intelligent
>> here. The lightweight checkout stores the revision that the
>> working tree is at and this revision is contained in the new
>> branch I was trying to switch to. So Bazaar should still be able
>> to perform the switch shouldn't it?
>
>> Cheers,
>
>> Nick
>
> I believe '--force' might get you what you want.
>
> John =:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkw+s3gACgkQm69gNgxDuSFdbQCdHSunspsXQxTUTEdHfZ6avDMd
4ogAoKZ2+q5pwEJGjW0a1J5b3wF0o487
=tEfo
-----END PGP SIGNATURE-----




More information about the bazaar mailing list