Mercurial > hg
comparison mercurial/config.py @ 8298:9542f4c3fa1b
config: make remap actually work
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 04 May 2009 14:21:43 -0500 |
parents | 52c5be55af82 |
children | b87a50b7125c |
comparison
equal
deleted
inserted
replaced
8297:7f27e69dd27f | 8298:9542f4c3fa1b |
---|---|
103 if emptyre.match(l): | 103 if emptyre.match(l): |
104 continue | 104 continue |
105 m = sectionre.match(l) | 105 m = sectionre.match(l) |
106 if m: | 106 if m: |
107 section = m.group(1) | 107 section = m.group(1) |
108 if remap: | |
109 section = remap.get(section, section) | |
108 if section not in self: | 110 if section not in self: |
109 self._data[section] = sortdict() | 111 self._data[section] = sortdict() |
110 continue | 112 continue |
111 m = itemre.match(l) | 113 m = itemre.match(l) |
112 if m: | 114 if m: |