D882: deb: install zsh completions to /usr/share/zsh/vendor-completions

spectral (Kyle Lippincott) phabricator at mercurial-scm.org
Sun Oct 1 10:04:49 EDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG9ecc622ca23f: deb: install zsh completions to /usr/share/zsh/vendor-completions (authored by spectral, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D882?vs=2280&id=2290

REVISION DETAIL
  https://phab.mercurial-scm.org/D882

AFFECTED FILES
  contrib/debian/rules
  tests/test-debian-packages.t

CHANGE DETAILS

diff --git a/tests/test-debian-packages.t b/tests/test-debian-packages.t
--- a/tests/test-debian-packages.t
+++ b/tests/test-debian-packages.t
@@ -21,3 +21,6 @@
 mercurial-common should have py but no .so or pyc
   $ dpkg --contents mercurial-common_*.deb | egrep '(localrepo|parsers.*so)'
   * ./usr/lib/python2.7/dist-packages/mercurial/localrepo.py (glob)
+zsh completions should be in the common package
+  $ dpkg --contents mercurial-common_*.deb | egrep 'zsh.*[^/]$'
+  * ./usr/share/zsh/vendor-completions/_hg (glob)
diff --git a/contrib/debian/rules b/contrib/debian/rules
--- a/contrib/debian/rules
+++ b/contrib/debian/rules
@@ -33,4 +33,6 @@
 	cp contrib/debian/*.rc $(CURDIR)/debian/mercurial-common/etc/mercurial/hgrc.d/
 	mkdir -p $(CURDIR)/debian/mercurial-common/usr/share/bash-completion/completions
 	cp contrib/bash_completion $(CURDIR)/debian/mercurial-common/usr/share/bash-completion/completions/hg
+	mkdir -p $(CURDIR)/debian/mercurial-common/usr/share/zsh/vendor-completions
+	cp contrib/zsh_completion $(CURDIR)/debian/mercurial-common/usr/share/zsh/vendor-completions/_hg
 	rm $(CURDIR)/debian/mercurial-common/usr/bin/hg



To: spectral, #hg-reviewers, simpkins
Cc: mercurial-devel


More information about the Mercurial-devel mailing list