changeset 20129:da8fb88bd757

bash_completion: add completion for deleting a shelve
author Sean Farley <sean.michael.farley@gmail.com>
date Fri, 22 Nov 2013 14:58:41 -0500
parents 56108ee1edb6
children 7c78c7eff119
files contrib/bash_completion
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/bash_completion	Thu Nov 21 15:14:52 2013 -0500
+++ b/contrib/bash_completion	Fri Nov 22 14:58:41 2013 -0500
@@ -604,7 +604,11 @@
 
 _hg_cmd_shelve()
 {
-    _hg_status "mard"
+    if [[ "$prev" = @(-d|--delete) ]]; then
+        _hg_shelves
+    else
+        _hg_status "mard"
+    fi
 }
 
 _hg_cmd_unshelve()