[PATCH 7 of 8 V2] bash_completion: use correct command for listing shelves

Sean Farley sean.michael.farley at gmail.com
Fri Nov 22 14:26:07 CST 2013


# HG changeset patch
# User Sean Farley <sean.michael.farley at gmail.com>
# Date 1385064892 18000
#      Thu Nov 21 15:14:52 2013 -0500
# Node ID 8d20a60aa93cba1a3e332f62dc8c55bfa2eea191
# Parent  e4e131f0d64d7d9c9a27bc4994d172ee1f5d67de
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
@@ -595,11 +595,11 @@
 }
 
 # shelve
 _hg_shelves()
 {
-    local shelves="$(_hg_cmd unshelve -l .)"
+    local shelves="$(_hg_cmd shelve -ql)"
     local IFS=$'\n'
     COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$shelves' -- "$cur"))
 }
 
 _hg_cmd_shelve()


More information about the Mercurial-devel mailing list