reupdate the options after loading the repo
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Thu, 27 Jul 2006 19:26:01 +0200
changeset 2716 4af4e1870fa0
parent 2691 accadcb4e4b5
child 2717 14ebe97542a7
reupdate the options after loading the repo local .hgrc could possibly override them, command line take priority
mercurial/commands.py
--- a/mercurial/commands.py	Thu Jul 27 13:18:21 2006 +0200
+++ b/mercurial/commands.py	Thu Jul 27 19:26:01 2006 +0200
@@ -3435,6 +3435,11 @@
             else:
                 d = lambda: func(u, *args, **cmdoptions)
 
+            # reupdate the options, repo/.hg/hgrc may have changed them
+            u.updateopts(options["verbose"], options["debug"], options["quiet"],
+                         not options["noninteractive"], options["traceback"],
+                         options["config"])
+
             try:
                 if options['profile']:
                     import hotshot, hotshot.stats