# HG changeset patch # User Sean Farley # Date 2013-11-21 20:14:52 # Node ID 56108ee1edb620e5d61b89900529e8aa5cea447d # Parent 6b771bcd1a6203710fb832b99f1257f11f93de80 bash_completion: use correct command for listing shelves Previously, _hg_shelves used the unshelve command to list current shelves. This is actually the wrong command. The correct usage is 'hg shelve -l' so we use that instead. diff --git a/contrib/bash_completion b/contrib/bash_completion --- a/contrib/bash_completion +++ b/contrib/bash_completion @@ -597,7 +597,7 @@ complete -o bashdefault -o default -o no # shelve _hg_shelves() { - local shelves="$(_hg_cmd unshelve -l .)" + local shelves="$(_hg_cmd shelve -ql)" local IFS=$'\n' COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$shelves' -- "$cur")) }