# HG changeset patch # User Alexis S. L. Carvalho # Date 2006-10-22 04:01:42 # Node ID 13a9a2136dd767e8295596ada4207437e690bb1c # Parent 03932425cfd86eb2aa658ca4c314d0e7c8af73a1 bash_completion: make export fall back to tags when there's no mq patch applied diff --git a/contrib/bash_completion b/contrib/bash_completion --- a/contrib/bash_completion +++ b/contrib/bash_completion @@ -193,7 +193,13 @@ shopt -s extglob help) _hg_commands ;; - export|manifest|update) + export) + if _hg_ext_mq_patchlist qapplied && [ "${COMPREPLY[*]}" ]; then + return 0 + fi + _hg_tags + ;; + manifest|update) _hg_tags ;; pull|push|outgoing|incoming) @@ -318,11 +324,6 @@ complete -o bashdefault -o default -F _h COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$files' -- "$cur")) } -_hg_cmd_export() -{ - _hg_ext_mq_patchlist qapplied -} - # hbisect _hg_cmd_bisect()