zsh completion: add support for qfinish
authorAugie Fackler <durin42@gmail.com>
Mon, 12 Dec 2011 11:54:22 -0600
changeset 15645 88a82069be4a
parent 15644 43bb9c5ab963
child 15646 218ec96c45d7
zsh completion: add support for qfinish
contrib/zsh_completion
--- 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]' \