mercurial/commands.py
changeset 3346 e4aa22eaa0e4
parent 3344 1700a103458e
child 3383 5e6c19919741
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -3318,10 +3318,6 @@ def dispatch(args):
                     (t[4]-s[4], t[0]-s[0], t[2]-s[2], t[1]-s[1], t[3]-s[3]))
             atexit.register(print_time)
 
-        u.updateopts(options["verbose"], options["debug"], options["quiet"],
-                     not options["noninteractive"], options["traceback"],
-                     parseconfig(options["config"]))
-
         # enter the debugger before command execution
         if options['debugger']:
             pdb.set_trace()
@@ -3334,6 +3330,10 @@ def dispatch(args):
                     raise util.Abort('%s: %s' %
                                      (options['cwd'], inst.strerror))
 
+            u.updateopts(options["verbose"], options["debug"], options["quiet"],
+                         not options["noninteractive"], options["traceback"],
+                         parseconfig(options["config"]))
+
             path = u.expandpath(options["repository"]) or ""
             repo = path and hg.repository(u, path=path) or None
             if repo and not repo.local():