[PATCH 08 of 11 V3] bash_completion: add completion for deleting a shelve
Sean Farley
sean.michael.farley at gmail.com
Mon Nov 25 17:42:21 UTC 2013
# HG changeset patch
# User Sean Farley <sean.michael.farley at gmail.com>
# Date 1385150321 18000
# Fri Nov 22 14:58:41 2013 -0500
# Node ID a7932effc3c2c76dfc37bf70593b77b86bbaa3b5
# Parent 6644dbf7724e54ec0fe8d91f653942510e5f61d4
bash_completion: add completion for deleting a shelve
diff --git a/contrib/bash_completion b/contrib/bash_completion
--- a/contrib/bash_completion
+++ b/contrib/bash_completion
@@ -602,11 +602,15 @@
COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$shelves' -- "$cur"))
}
_hg_cmd_shelve()
{
- _hg_status "mard"
+ if [[ "$prev" = @(-d|--delete) ]]; then
+ _hg_shelves
+ else
+ _hg_status "mard"
+ fi
}
_hg_cmd_unshelve()
{
_hg_shelves
More information about the Mercurial-devel
mailing list