diff contrib/zsh_completion @ 15645:88a82069be4a

zsh completion: add support for qfinish
author Augie Fackler <durin42@gmail.com>
date Mon, 12 Dec 2011 11:54:22 -0600
parents a051f8a6a7cc
children a5a3af000e0d
line wrap: on
line diff
--- a/contrib/zsh_completion	Thu Dec 15 14:24:38 2011 -0600
+++ b/contrib/zsh_completion	Mon Dec 12 11:54:22 2011 -0600
@@ -880,6 +880,12 @@
   '*:pattern:_hg_files'
 }
 
+_hg_cmd_qfinish() {
+  _arguments -s -w : $_hg_global_opts \
+  '(--all -a)'{-a,--all}'[finish all patches]' \
+  '*:patch:_hg_qapplied'
+}
+
 _hg_cmd_qfold() {
   _arguments -s -w : $_hg_global_opts $_h_commit_opts \
   '(--keep,-k)'{-k,--keep}'[keep folded patch files]' \