changeset 3482:e762c0e95eac

bash_completion: qdelete --rev
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Sun, 22 Oct 2006 01:01:45 -0300
parents 13a9a2136dd7
children 34cc82c6c7c2
files contrib/bash_completion
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/bash_completion	Sun Oct 22 01:01:42 2006 -0300
+++ b/contrib/bash_completion	Sun Oct 22 01:01:45 2006 -0300
@@ -299,7 +299,11 @@
 
 _hg_cmd_qdelete()
 {
-    _hg_ext_mq_patchlist qunapplied
+    local qcmd=qunapplied
+    if [[ "$prev" = @(-r|--rev) ]]; then
+	qcmd=qapplied
+    fi
+    _hg_ext_mq_patchlist $qcmd
 }
 
 _hg_cmd_qsave()