contrib/bash_completion
changeset 3482 e762c0e95eac
parent 3481 13a9a2136dd7
child 3483 34cc82c6c7c2
--- 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()