diff -r d3d35a55e03b -r 02845f7441af mercurial/commands.py --- a/mercurial/commands.py Sat Nov 11 17:55:15 2017 +0900 +++ b/mercurial/commands.py Sat Nov 11 12:40:13 2017 +0900 @@ -102,6 +102,10 @@ _("when to paginate (boolean, always, auto, or never)"), _('TYPE')), ] +# options which must be pre-parsed before loading configs and extensions +# TODO: perhaps --debugger should be included +earlyoptflags = ("--cwd", "-R", "--repository", "--repo", "--config") + dryrunopts = cmdutil.dryrunopts remoteopts = cmdutil.remoteopts walkopts = cmdutil.walkopts