contrib/bash_completion
changeset 9602 fc493cb90bb1
parent 9460 552c5a5a3502
parent 9511 33033af09308
child 9840 18d5935c0c62
--- a/contrib/bash_completion	Fri Oct 16 11:18:38 2009 +0200
+++ b/contrib/bash_completion	Fri Oct 16 11:19:39 2009 +0200
@@ -546,3 +546,20 @@
     return
 }
 
+# shelve
+_hg_shelves()
+{
+    local shelves="$("$hg" unshelve -l . 2>/dev/null)"
+    local IFS=$'\n'
+    COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$shelves' -- "$cur"))
+}
+
+_hg_cmd_shelve()
+{
+    _hg_status "mard"
+}
+
+_hg_cmd_unshelve()
+{
+    _hg_shelves
+}