Patchwork [07,of,11,V3] bash_completion: use correct command for listing shelves

login
register
mail settings
Submitter Sean Farley
Date Nov. 25, 2013, 5:42 p.m.
Message ID <6644dbf7724e54ec0fe8.1385401340@dyn-160-39-236-172.dyn.columbia.edu>
Download mbox | patch
Permalink /patch/3127/
State Superseded
Commit 56108ee1edb620e5d61b89900529e8aa5cea447d
Headers show

Comments

Sean Farley - Nov. 25, 2013, 5:42 p.m.
# HG changeset patch
# User Sean Farley <sean.michael.farley@gmail.com>
# Date 1385064892 18000
#      Thu Nov 21 15:14:52 2013 -0500
# Node ID 6644dbf7724e54ec0fe8d91f653942510e5f61d4
# Parent  3f7cf7215d5fadb5fa9107398aa11b99f8217339
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.

Patch

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()