relative path issues in branch.config

Bug #1460454 reported by Sondra Kinsey
6
This bug affects 1 person
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\Owner\Documents\code\my-branch$ bzr info
Standalone tree (format: 2a)
Location:
  branch root: .
bzr: ERROR: Parent not accessible given base "file:///C:/Users/Owner/Documents/code/my-branch/" and relative path "../../../../../../../home/owner/Documents/my-branch/"

C:\Users\Owner\Documents\code\my-branch$ bzr pull J:\code\my-branch
bzr: ERROR: Parent not accessible given base "file:///C:/Users/Owner/Documents/code/my-branch/" and relative path "../../../../../../../home/owner/Documents/my-branch/"

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\python26.dll 2.6.6
  Python standard library: C:\Program Files\Bazaar\lib\library.zip
  Platform: Windows-Vista-6.0.6002-SP2

See also the somewhat related bugs:
#317310: "no simple way to set branch URLs" <https://bugs.launchpad.net/bzr/+bug/317310>
#359320: "Paths with links, or relative paths, cannot be used in location.conf. " <https://bugs.launchpad.net/bzr/+bug/359320>

Tags: win32
Jelmer Vernooij (jelmer)
Changed in bzr:
status: New → Confirmed
Jelmer Vernooij (jelmer)
Changed in brz:
status: New → Triaged
importance: Undecided → Low
tags: added: win32
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.