[PATCH 5 of 5] dispatch: set config options on the request repo.ui
Idan Kamara
idankk86 at gmail.com
Fri Jun 24 16:51:03 UTC 2011
# HG changeset patch
# User Idan Kamara <idankk86 at gmail.com>
# Date 1308933899 -10800
# Branch stable
# Node ID ac2bbd442819a788869502875a2ffa5e699b9741
# Parent b51150c61917f36550cf3c54d7ece065385273ac
dispatch: set config options on the request repo.ui
diff -r b51150c61917 -r ac2bbd442819 mercurial/dispatch.py
--- a/mercurial/dispatch.py Fri Jun 24 19:44:59 2011 +0300
+++ b/mercurial/dispatch.py Fri Jun 24 19:44:59 2011 +0300
@@ -530,7 +530,7 @@
# read --config before doing anything else
# (e.g. to change trust settings for reading .hg/hgrc)
- _parseconfig(ui, _earlygetopt(['--config'], args))
+ cfgs = _parseconfig(ui, _earlygetopt(['--config'], args))
# check for cwd
cwd = _earlygetopt(['--cwd'], args)
@@ -602,6 +602,10 @@
if req.repo:
uis.add(req.repo.ui)
+ # copy configs that were passed on the cmdline (--config) to the repo ui
+ for cfg in cfgs:
+ req.repo.ui.setconfig(*cfg)
+
for opt in ('verbose', 'debug', 'quiet', 'traceback'):
val = bool(options[opt])
if val:
More information about the Mercurial-devel
mailing list