This is an archive of the discontinued Mercurial Phabricator instance.

zsh_completion: add -l/--list flag for hg bookmarks completion
ClosedPublic

Authored by av6 on Oct 17 2018, 11:49 AM.

Details

Summary

Flags in parentheses are mutually exclusive. Logic is taken from commands.py:

selactions = [k for k in ['delete', 'rename', 'list'] if opts.get(k)]
if len(selactions) > 1:
    raise error.Abort(_('--%s and --%s are incompatible')
                      % tuple(selactions[:2]))

...

if rev and action in {'delete', 'rename', 'list'}:
    raise error.Abort(_("--rev is incompatible with --%s") % action)
if inactive and action in {'delete', 'list'}:
    raise error.Abort(_("--inactive is incompatible with --%s") % action)

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.Oct 17 2018, 11:49 AM
This revision was automatically updated to reflect the committed changes.