config: make remap actually work
authorMatt Mackall <mpm@selenic.com>
Mon, 04 May 2009 14:21:43 -0500
changeset 8298 9542f4c3fa1b
parent 8297 7f27e69dd27f
child 8299 edd676eae7d7
config: make remap actually work
mercurial/config.py
--- a/mercurial/config.py	Mon May 04 22:14:52 2009 +0200
+++ b/mercurial/config.py	Mon May 04 14:21:43 2009 -0500
@@ -105,6 +105,8 @@
             m = sectionre.match(l)
             if m:
                 section = m.group(1)
+                if remap:
+                    section = remap.get(section, section)
                 if section not in self:
                     self._data[section] = sortdict()
                 continue