[PATCH] bashcompletion: allow skipping completion for 'hg status'
Mathias De Maré
mathias.de_mare at nokia.com
Wed Oct 5 14:01:51 UTC 2016
# HG changeset patch
# User Mathias De Maré <mathias.de_mare at nokia.com>
# Date 1474879657 -7200
# Mon Sep 26 10:47:37 2016 +0200
# Node ID 1ad8d68d6e495200969a650992f9cf7ff3f934d1
# Parent 1779dde4c9ef97cb242f8d501655f236f66e5439
bashcompletion: allow skipping completion for 'hg status'
diff --git a/contrib/bash_completion b/contrib/bash_completion
--- a/contrib/bash_completion
+++ b/contrib/bash_completion
@@ -89,9 +89,11 @@
_hg_status()
{
- local files="$(_hg_cmd status -n$1 "glob:$cur**")"
- local IFS=$'\n'
- COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$files' -- "$cur"))
+ if [ -z "$HGCOMPLETE_NOSTATUS" ]; then
+ local files="$(_hg_cmd status -n$1 "glob:$cur**")"
+ local IFS=$'\n'
+ COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$files' -- "$cur"))
+ fi
}
_hg_branches()
More information about the Mercurial-devel
mailing list