Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH 0/5] An update for Completion/Unix/Command/_hg



Hey there zsh folks,

One day I decided to update completion file for hg (Mercurial), even though I
didn't really know how zsh completion system works. A week later, I still don't
know how it works, but I believe I have something that's worth sending. So here
goes.

This update is based on hg 4.0, which is what Debian stable has at the moment.
When comparing it to 4.7, which has been released recently, it lacks some newer
command line flags (e.g. --dry-run and --interactive for more commands), but
let's assume people don't upgrade often and 4.0 is the least they have. I can
update the completion file based on 4.7 later, if people think it's a good
idea.

In general, I can fix errors and things that I missed, but preferably in a
follow-up, because I was staring at these diffs for a whole week. Diffs as in
plural because I have an update to upstream... downstream? sidestream's
completion file: Mercurial's own contrib/zsh_completion, which I'm intending to
base on 4.7. My idea is to run things through people who know zsh completion
better first, and then send patches to Mercurial.

I've split the work into 5 patches for easier reviewing, because they do need
reviewing -- I'd rather not have any errors in a file that gets updated once a
year. Thanks in advance!

Anton Shestakov (5):
  _hg: rename _hg_style_opts to _hg_template_opts
  _hg: declare appropriate local parameters for ->string form
  _hg: add forget, phase, summary
  _hg: update all options
  _hg: drop -w, add -S to _arguments

 Completion/Unix/Command/_hg | 357 ++++++++++++++++++++++++++------------------
 1 file changed, 213 insertions(+), 144 deletions(-)

-- 
2.11.0



Messages sorted by: Reverse Date, Date, Thread, Author