mercurial/ui.py
changeset 11970 fca15617721c
parent 11945 5094e6b2f640
parent 11965 77f1f206e135
child 11984 2db0fccc8143
--- a/mercurial/ui.py	Wed Jul 28 23:05:03 2010 -0600
+++ b/mercurial/ui.py	Thu Aug 19 10:25:41 2010 -0500
@@ -121,9 +121,11 @@
         self._trustusers.update(self.configlist('trusted', 'users'))
         self._trustgroups.update(self.configlist('trusted', 'groups'))
 
-    def setconfig(self, section, name, value):
-        for cfg in (self._ocfg, self._tcfg, self._ucfg):
-            cfg.set(section, name, value)
+    def setconfig(self, section, name, value, overlay=True):
+        if overlay:
+            self._ocfg.set(section, name, value)
+        self._tcfg.set(section, name, value)
+        self._ucfg.set(section, name, value)
         self.fixconfig()
 
     def _data(self, untrusted):