Mercurial > hg
changeset 1888:283d2ab1e020
Make bash_completion more robust for e.g. broken hgrc or old hg installations.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sun, 12 Mar 2006 12:29:03 +0100 |
parents | 913397c27cd8 |
children | 468730910353 |
files | contrib/bash_completion |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/bash_completion Sun Mar 12 11:32:03 2006 +0100 +++ b/contrib/bash_completion Sun Mar 12 12:29:03 2006 +0100 @@ -15,7 +15,8 @@ _hg_commands() { - local commands="$("$hg" debugcomplete "$cur")" + local commands + commands="$("$hg" debugcomplete "$cur" 2>/dev/null)" || commands="" COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$commands' -- "$cur")) }