changeset 17397:c785bb3ace29

zsh completion: add `forget` and `rollback` commands
author Nikolaj Sjujskij <sterkrig@myopera.com>
date Thu, 16 Aug 2012 19:02:49 +0400
parents aaaeea31482a
children b290d3b1c1b8
files contrib/zsh_completion
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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' \