[Pkg-bazaar-maint] Bug#578708: bzr+ssh urls do not actually support /~/ as a path prefix

Lars Wirzenius lars at catalyst.net.nz
Wed Apr 21 22:58:12 UTC 2010


Package: bzr
Version: 2.1.1-1
Severity: normal
Tags: upstream

>From "bzr help urlspec":

    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 at saimaa$ rm -rf trunk
    liw at saimaa$ bzr get sftp://pieni.net/~/code.liw.fi/summain/bzr/trunk/
    Branched 28 revision(s).
    liw at saimaa$ rm -rf trunk
    liw at 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 at saimaa$ bzr get bzr+ssh://pieni.net/home/liw/code.liw.fi/summain/bzr/trunk/
    Branched 28 revision(s).
    liw at 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.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages bzr depends on:
ii  libc6                   2.10.2-6         Embedded GNU C Library: Shared lib
ii  python                  2.5.4-9          An interactive high-level object-o
ii  python-central          0.6.14+nmu2      register and build utility for Pyt
ii  python-configobj        4.7.2+ds-1       simple but powerful config file re
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

Versions of packages bzr recommends:
ii  bzrtools                      2.1.0-2    Collection of tools for bzr
ii  ca-certificates               20090814   Common CA certificates
ii  python-paramiko               1.7.6-2    Make ssh v2 connections with Pytho

Versions of packages bzr suggests:
pn  bzr-doc              <none>              (no description available)
pn  bzr-gtk              <none>              (no description available)
pn  bzr-svn              <none>              (no description available)
pn  python-kerberos      <none>              (no description available)
pn  python-pycurl        <none>              (no description available)
ii  xdg-utils            1.0.2+cvs20100307-1 desktop integration utilities from

-- no debconf information





More information about the Pkg-bazaar-maint mailing list