comparison mercurial/commands.py @ 35225:7ce0ba3a1c32

dispatch: replace _earlygetopt(strip=True) with new parser The execution order in cmdalias.__init__() is adjusted to set stripped args to self.givenargs, which is no longer updated in place.
author Yuya Nishihara <yuya@tcha.org>
date Thu, 23 Nov 2017 23:18:56 +0900
parents ee64e677c3cf
children 98f97eb20597
comparison
equal deleted inserted replaced
35224:6e6d0a5b88e6 35225:7ce0ba3a1c32
100 ('h', 'help', None, _('display help and exit')), 100 ('h', 'help', None, _('display help and exit')),
101 ('', 'hidden', False, _('consider hidden changesets')), 101 ('', 'hidden', False, _('consider hidden changesets')),
102 ('', 'pager', 'auto', 102 ('', 'pager', 'auto',
103 _("when to paginate (boolean, always, auto, or never)"), _('TYPE')), 103 _("when to paginate (boolean, always, auto, or never)"), _('TYPE')),
104 ] 104 ]
105
106 # options which must be pre-parsed before loading configs and extensions
107 # TODO: perhaps --debugger should be included
108 earlyoptflags = ("--cwd", "-R", "--repository", "--repo", "--config")
109 105
110 dryrunopts = cmdutil.dryrunopts 106 dryrunopts = cmdutil.dryrunopts
111 remoteopts = cmdutil.remoteopts 107 remoteopts = cmdutil.remoteopts
112 walkopts = cmdutil.walkopts 108 walkopts = cmdutil.walkopts
113 commitopts = cmdutil.commitopts 109 commitopts = cmdutil.commitopts