changeset 20128:56108ee1edb6

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.
author Sean Farley <sean.michael.farley@gmail.com>
date Thu, 21 Nov 2013 15:14:52 -0500
parents 6b771bcd1a62
children da8fb88bd757
files contrib/bash_completion
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/bash_completion	Wed Nov 20 19:13:24 2013 -0500
+++ b/contrib/bash_completion	Thu Nov 21 15:14:52 2013 -0500
@@ -597,7 +597,7 @@
 # shelve
 _hg_shelves()
 {
-    local shelves="$(_hg_cmd unshelve -l .)"
+    local shelves="$(_hg_cmd shelve -ql)"
     local IFS=$'\n'
     COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$shelves' -- "$cur"))
 }