# HG changeset patch # User Alexis S. L. Carvalho # Date 2006-10-22 04:01:45 # Node ID e762c0e95eace3c5268a564845542c56ddf3bc6b # Parent 13a9a2136dd767e8295596ada4207437e690bb1c bash_completion: qdelete --rev diff --git a/contrib/bash_completion b/contrib/bash_completion --- a/contrib/bash_completion +++ b/contrib/bash_completion @@ -299,7 +299,11 @@ complete -o bashdefault -o default -F _h _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()