bash_completion: use correct command for listing shelves
authorSean Farley <sean.michael.farley@gmail.com>
Thu, 21 Nov 2013 15:14:52 -0500
changeset 20128 56108ee1edb6
parent 20127 6b771bcd1a62
child 20129 da8fb88bd757
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.
contrib/bash_completion
--- 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"))
 }