zsh completion: add `forget` and `rollback` commands
authorNikolaj Sjujskij <sterkrig@myopera.com>
Thu, 16 Aug 2012 19:02:49 +0400
changeset 17397 c785bb3ace29
parent 17396 aaaeea31482a
child 17398 b290d3b1c1b8
zsh completion: add `forget` and `rollback` commands
contrib/zsh_completion
--- a/contrib/zsh_completion	Thu Aug 16 11:21:46 2012 +0400
+++ b/contrib/zsh_completion	Thu Aug 16 19:02:49 2012 +0400
@@ -566,6 +566,11 @@
   '*:revision:_hg_labels'
 }
 
+_hg_cmd_forget() {
+  _arguments -s -w : $_hg_global_opts \
+  '*:file:_hg_files'
+}
+
 _hg_cmd_graft() {
   _arguments -s -w : $_hg_global_opts \
   '(--continue -c)'{-c,--continue}'[resume interrupted graft]' \
@@ -777,6 +782,11 @@
   fi
 }
 
+_hg_cmd_rollback() {
+  _arguments -s -w : $_hg_global_opts $_hg_dryrun_opts \
+  '(--force -f)'{-f,--force}'[ignore safety measures]' \
+}
+
 _hg_cmd_serve() {
   _arguments -s -w : $_hg_global_opts \
   '(--accesslog -A)'{-A+,--accesslog}'[name of access log file]:log file:_files' \