changeset 8298:9542f4c3fa1b

config: make remap actually work
author Matt Mackall <mpm@selenic.com>
date Mon, 04 May 2009 14:21:43 -0500
parents 7f27e69dd27f
children edd676eae7d7
files mercurial/config.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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