open_branch() on a remote lightweight checkout tries to open a local branch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Medium
|
Unassigned |
Bug Description
When trying to open the parent branch of a checkout on a remote machine using the bzrlib API, I tried:
REMOTE = 'remote.
from bzrlib import bzrdir
a_bzrdir, relpath =
bzrdir.
REMOTE)
branch = a_bzrdir.
which fails with
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "bzrlib/remote.py", line 584, in open_branch
location=
File "bzrlib/branch.py", line 2300, in open
location, possible_
File "bzrlib/bzrdir.py", line 826, in open
return BzrDir.
File "bzrlib/bzrdir.py", line 856, in open_from_transport
redirected)
File "bzrlib/
return action(transport)
File "bzrlib/bzrdir.py", line 843, in find_format
transport, _server_
File "bzrlib/
raise errors.
bzrlib.
even though:
$ ssh remote.example.com
remote$ bzr info /Users/
Repository branch (format: 2a)
Location:
shared repository: tmp/blech/
repository branch: tmp/blech/
remote$ bzr info /Users/
Lightweight checkout (format: 2a)
Location:
light checkout root: tmp/blech
checkout of branch: tmp/blech/
shared repository: tmp/blech/
and:
$ bzr info bzr+ssh:
Repository branch (format: unnamed)Location:
shared repository:
bzr+ssh:
repository branch:
bzr+ssh:
$ bzr info bzr+ssh:
$
I expected to get a branch on the remote sever that I could interact with.
It even seems that if there is a branch on the local machine at /Users/
tags: | added: check-for-breezy |
The ReferenceLocation is being stored as an absolute path, and is probably even a file:// url. We certainly have talked about changing it to a relative URL segment when reasonable (../other/location rather than always /path/to/ other/location) .