How to change the branch a lightweight checkout points at?

Jonathan Lange jml at mumak.net
Wed Mar 25 01:50:27 GMT 2009


On Wed, Mar 25, 2009 at 12:20 PM, Mary Gardiner <mary at puzzling.org> wrote:
> On Wed, Mar 25, 2009, Jonathan Lange wrote:
>> I do something like this:
>>
>> echo -n 'bzr+ssh://remote/remote-branch' > .bzr/branch/location
>>
>> I'm not aware of a Bazaar command to achieve the same effect.
>
> I assume you are in /local/working-tree at this time?
>

Yes.

> Unless I'm misunderstanding something, doesn't this achieve exactly the
> opposite of what I want? I don't have a branch with this problem any more (*I*
> solved it by completely deleting /local/working-tree and running "bzr co
> --lightweight /local/local-heavyweight-checkout") to test on.
>

Oops, I missed the "damn", and on further reflection completely
misread your use case. Sorry for the confusion.

jml



More information about the bazaar mailing list