Mercurial > hg-stable
diff mercurial/ui.py @ 20787:be179da10d5f
config: backout 77f1f206e135 - 743daa601445 removed the only use of overlay
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Wed, 19 Mar 2014 01:59:15 +0100 |
parents | be140ebd506b |
children | f144928dd058 |
line wrap: on
line diff
--- a/mercurial/ui.py Thu Mar 20 00:10:45 2014 +0900 +++ b/mercurial/ui.py Wed Mar 19 01:59:15 2014 +0100 @@ -157,11 +157,9 @@ 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):