Package: bzr
Version: 2.1.1-1
Severity: normal
Tags: upstream
For bzr+ssh:// and sftp:// URLs, Bazaar also supports paths that begin
with '~' as meaning that the rest of the path should be interpreted
relative to the remote user's home directory. For example if the user
``remote`` has a home directory of ``/home/remote`` on the server
shell.example.com, then:
bzr+ssh://remote@shell.example.com/~/myproject/trunk
would refer to ``/home/remote/myproject/trunk``.
However, this does not seem to work:
liw@saimaa$ rm -rf trunk
liw@saimaa$ bzr get sftp://pieni.net/~/code.liw.fi/summain/bzr/trunk/
Branched 28 revision(s).
liw@saimaa$ rm -rf trunk
liw@saimaa$ bzr get bzr+ssh://pieni.net/~/code.liw.fi/summain/bzr/trunk/
bzr: ERROR: Not a branch: "bzr+ssh://pieni.net/~/code.liw.fi/summain/bzr/trunk/".
liw@saimaa$ bzr get bzr+ssh://pieni.net/home/liw/code.liw.fi/summain/bzr/trunk/
Branched 28 revision(s).
liw@saimaa$
My home directory on the remote end is /home/liw (no surprise). With
sftp, the /~/ syntax works, with bzr+ssh it does not. If I expand /~/
to /home/liw manually, it works with bzr+ssh as well.