[Python-apps-team] Bug#802923: mercurial-common: Rename of bash-completion file broke completion autoloading mechanism.

Oleksandr Gavenko gavenkoa at gmail.com
Sun Oct 25 07:38:07 UTC 2015


Package: mercurial-common
Version: 3.5.2-1
Severity: normal
New version move

  /usr/share/bash-completion/completions/hg

to:

  /usr/share/bash-completion/completions/mercurial

Newer bash-completion project moved to autoloading on demand schema with
"completion -D" trick.

This means that completion file only loaded during first time pressing TAB on
"hg ... TAB" expression in interactive session.

As for now we have no "hg" completion it wasn't loaded. As a trick I type:

  $ mercurial cloTAB

and:

  complete -o bashdefault -o default -o nospace -F _hg hg \
      || complete -o default -o nospace -F _hg hg

from /usr/share/bash-completion/completions/mercurial, loaded and starting
from that time I able to use completion for hg.

I don't understand reason for such renames even if look to
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=799052

Note that old cache show right file name:

  bash# apt-file search -x bash.*hg
  mercurial-common: /usr/share/bash-completion/completions/hg

If your desire to hold completion fine under name "mercurial" consider making
symlink to "hg" to fix issue.

As temporary solution it is possible to load "hg" completion in personal
configuration file.

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (400, 'testing'), (200, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages mercurial-common depends on:
ii  libjs-excanvas  0.r3-4
ii  python          2.7.9-1
pn  python:any      <none>

Versions of packages mercurial-common recommends:
ii  ca-certificates  20150426
ii  mercurial        3.5.2-1

Versions of packages mercurial-common suggests:
ii  python-mysqldb   1.2.3-2.1
ii  python-openssl   0.15.1-2
ii  python-pygments  2.0.1+dfsg-1.1
ii  tk [wish]        8.6.0+8

-- no debconf information

-- 
Best regards!



More information about the Python-apps-team mailing list