D4266: zsh_completion: run hg with HGPLAINEXCEPT=alias to list commands
av6 (Anton Shestakov)
phabricator at mercurial-scm.org
Sat Aug 11 04:10:15 UTC 2018
av6 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This is what contrib/bash_completion does, looks like a sensible thing to do.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D4266
AFFECTED FILES
contrib/zsh_completion
CHANGE DETAILS
diff --git a/contrib/zsh_completion b/contrib/zsh_completion
--- a/contrib/zsh_completion
+++ b/contrib/zsh_completion
@@ -139,7 +139,7 @@
typeset -gA _hg_alias_list
local hline cmd cmdalias
- _call_program hg hg debugcomplete -v | while read -A hline
+ _call_program hg HGPLAINEXCEPT=alias hg debugcomplete -v | while read -A hline
do
cmd=$hline[1]
_hg_cmd_list+=($cmd)
To: av6, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list