rename branch of lightweight checkout

Asked by pdf23ds

Is there a way to rename a branch and then update lightweight checkouts of that branch to point to the new location? When I try I get an error on pretty much every bzr command that the branch directory no longer exists. I can manually edit the branch.conf file, but that's annoying.

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
Marius Kruger
Solved:
Last query:
Last reply:
Revision history for this message
Marius Kruger (amanica) said :
#1

you can use
bzr bind NEW_LOCATION

Revision history for this message
pdf23ds (pdf23ds) said :
#2

bzr bind gives the same error before letting you do anything.

Revision history for this message
Best Marius Kruger (amanica) said :
#3

I confirm that I can also not re-bind a lightweight checkout when the master
branch is missing (using bind, switch and reconfigure).

I see there is a open bug which looks similar:
https://bugs.launchpad.net/bzr/+bug/105192

As a workaround you might need to copy back your branch (or create a
symlink),
re-bind it and then remove the old copy again.

Revision history for this message
pdf23ds (pdf23ds) said :
#4

Thanks Marius Kruger, that solved my question.