bzr reconfigure can't fix dangling paths
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Sister of bug #1076809:
I have a collocated branch created on Windows, moved to Linux via a straightforward zip of the entire directory. The checkouts are broken by the fact an absolute path is saved, and bzr reconfigure tries to open the old path, which makes it impossible to use to fix the dangling references.
mathrick@
Dangling branch reference (format: 2a or pack-0.92)
Location:
control directory: .
checkout of branch: /C:/Documents and Settings/
mathrick@
bzr: ERROR: Not a branch: "/C:/Documents and Settings/
tags: | added: check-for-breezy |
As discussed on IRC, in the special case where the existing branch path is broken but a new one is provided from the command line, it's worth fixing:
bzr reconfigure --force --bind-to <valid path to branch>
where --force tells bzr to ignore the broken existing path.