D4361: zsh_completion: complete hg files

av6 (Anton Shestakov) phabricator at mercurial-scm.org
Wed Aug 29 15:41:04 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGad1c6bd3c676: zsh_completion: complete hg files (authored by av6, committed by ).

CHANGED PRIOR TO COMMIT
  https://phab.mercurial-scm.org/D4361?vs=10536&id=10650#toc

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4361?vs=10536&id=10650

REVISION DETAIL
  https://phab.mercurial-scm.org/D4361

AFFECTED FILES
  contrib/zsh_completion

CHANGE DETAILS

diff --git a/contrib/zsh_completion b/contrib/zsh_completion
--- a/contrib/zsh_completion
+++ b/contrib/zsh_completion
@@ -631,6 +631,13 @@
   '*:revision:_hg_labels'
 }
 
+_hg_cmd_files() {
+  _arguments -s -S : $_hg_global_opts $_hg_pat_opts $_hg_subrepos_opts \
+  '(--rev -r)'{-r+,--rev=}'[search the repository as it is in REV]:revision:_hg_labels' \
+  '(--print0 -0)'{-0,--print0}'[end filenames with NUL, for use with xargs]' \
+  '*:file:_hg_files'
+}
+
 _hg_cmd_forget() {
   _arguments -s -S : $_hg_global_opts $_hg_pat_opts $_hg_dryrun_opts \
   '(--interactive -i)'{-i,--interactive}'[use interactive mode]' \



To: av6, #hg-reviewers, spectral
Cc: pulkit, spectral, mercurial-devel


More information about the Mercurial-devel mailing list