mercurial/commands.py
branchstable
changeset 35034 02845f7441af
parent 34948 ff178743e59b
child 35163 ee64e677c3cf
child 35538 f39cf992216f
--- 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