This is an archive of the discontinued Mercurial Phabricator instance.

zsh_completion: complete merge tools for -t/--tool
ClosedPublic

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

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:45 AM
spectral accepted this revision.Aug 29 2018, 2:33 PM
spectral added a subscriber: spectral.
spectral added inline comments.
contrib/zsh_completion
292

I'm slightly concerned this might give a false impression of what's available, listing things that I don't have installed, but I think this might be the best we can do at the moment - there doesn't appear to be a way to convince filemerge.py's _picktool to dump a list of them.

292

Do we need to uniquify this, or is zsh smart enough to do so?

av6 added inline comments.Aug 30 2018, 1:01 AM
contrib/zsh_completion
292

zsh will uniquify this, yes.

This seems to be the best way to do it so far, but maybe there needs to be a debugmergetool command or something. This is, by the way, a port of fish-shell's way to get the list of merge tools.

This revision was automatically updated to reflect the committed changes.
av6 added projects: Restricted Project, hg-reviewers.Nov 2 2018, 3:12 PM

Changing project tags, please ignore.