This is an archive of the discontinued Mercurial Phabricator instance.

zsh_completion: complete hg files
ClosedPublic

Authored by av6 on Aug 23 2018, 3:44 AM.

Details

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

av6 created this revision.Aug 23 2018, 3:44 AM
spectral accepted this revision.Aug 29 2018, 2:24 PM
spectral added a subscriber: spectral.

(Accept conditional on fixing/documenting the difference I noticed)

contrib/zsh_completion
636

This is "search the repository as it is in REV" in my version (545a3e6650cd) and at default head (6f38284b)

pulkit added a subscriber: pulkit.Aug 29 2018, 3:14 PM

Queued this and D4360 as per spectral review. Many thanks!

contrib/zsh_completion
636

I changed "revision" to "REV" in flight.

This revision was automatically updated to reflect the committed changes.
av6 added inline comments.Aug 30 2018, 1:14 AM
contrib/zsh_completion
636

What is REV? It's a metavariable used in hg help output. It makes sense if you look at the help output while typing up hg files, but zsh's completion is supposed to help users to not constantly look at help/info/man, and here and throughout the completion file the metavariable is "revision".

Actually, looks like even hg help output most of the time spells out "revision" or "changeset" instead of using metavariables.