Patchwork [1,of,4] config: backout 77f1f206e135 - 743daa601445 removed the only use of overlay

login
register
mail settings
Submitter Mads Kiilerich
Date March 19, 2014, 1:45 a.m.
Message ID <1a8b79587d4e9258c085.1395193523@localhost.localdomain>
Download mbox | patch
Permalink /patch/3983/
State Accepted
Commit be179da10d5f502bcb8b358515bacc1305aed500
Headers show

Comments

Mads Kiilerich - March 19, 2014, 1:45 a.m.
# HG changeset patch
# User Mads Kiilerich <madski@unity3d.com>
# Date 1395190755 -3600
#      Wed Mar 19 01:59:15 2014 +0100
# Node ID 1a8b79587d4e9258c0850e001f393d34f56c6906
# Parent  77318d3c3b242cf047a3e73dd663159dac249fb8
config: backout 77f1f206e135 - 743daa601445 removed the only use of overlay

Patch

diff --git a/mercurial/ui.py b/mercurial/ui.py
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -157,11 +157,9 @@  class ui(object):
         self._tcfg.restore(data[1])
         self._ucfg.restore(data[2])
 
-    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)
+    def setconfig(self, section, name, value):
+        for cfg in (self._ocfg, self._tcfg, self._ucfg):
+            cfg.set(section, name, value)
         self.fixconfig(section=section)
 
     def _data(self, untrusted):