relative path issues in branch.config
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Undecided
|
Unassigned | ||
Breezy |
Triaged
|
Low
|
Unassigned |
Bug Description
I dual-boot Windows and Linux, and it has turned out to be a real pain working with bzr branches from both sides because of the way bzr handles relative paths. The relative paths from Linux are not resolvable on Windows, due to different file system roots (/).
Bazaar stores branch information in branch.conf. This is usually helpful, but if that file has relative paths that don't make sense to Bazaar, Bazaar refuses to work on the branch at all.
In other words, I get this output when I have been using a branch in linux, and then try in Windows:
C:\Users\
Standalone tree (format: 2a)
Location:
branch root: .
bzr: ERROR: Parent not accessible given base "file:/
C:\Users\
bzr: ERROR: Parent not accessible given base "file:/
This is unnecessary; information in branch.conf is for convenience, and failures there should not prevent bzr from working on the tree. In the second example, the branch to pull from is specified, and branch.conf should only be needed if it were not specified.
For me, it's annoying, but I have been just manually editing branch.conf on a regular basis as a workaround.
Environment information:
$ bzr --version
Bazaar (bzr) 2.5.1
Python interpreter: C:\Program Files\Bazaar\
Python standard library: C:\Program Files\Bazaar\
Platform: Windows-
See also the somewhat related bugs:
#317310: "no simple way to set branch URLs" <https:/
#359320: "Paths with links, or relative paths, cannot be used in location.conf. " <https:/
Changed in bzr: | |
status: | New → Confirmed |
Changed in brz: | |
status: | New → Triaged |
importance: | Undecided → Low |
tags: | added: win32 |