Mercurial > public > mercurial-scm > hg
comparison mercurial/config.py @ 34454:0efdfb57b05c
config: add a missing preparewrite() call
Thanks Yuya for pointing this out in D808.
Differential Revision: https://phab.mercurial-scm.org/D924
author | Jun Wu <quark@fb.com> |
---|---|
date | Tue, 03 Oct 2017 12:00:07 -0700 |
parents | c41444a39de2 |
children | e5a2cfc524d4 |
comparison
equal
deleted
inserted
replaced
34453:40b6d25ed2d5 | 34454:0efdfb57b05c |
---|---|
175 if m: | 175 if m: |
176 name = m.group(1) | 176 name = m.group(1) |
177 if sections and section not in sections: | 177 if sections and section not in sections: |
178 continue | 178 continue |
179 if self.get(section, name) is not None: | 179 if self.get(section, name) is not None: |
180 self._data[section] = self._data[section].preparewrite() | |
180 del self._data[section][name] | 181 del self._data[section][name] |
181 self._unset.append((section, name)) | 182 self._unset.append((section, name)) |
182 continue | 183 continue |
183 | 184 |
184 raise error.ParseError(l.rstrip(), ("%s:%s" % (src, line))) | 185 raise error.ParseError(l.rstrip(), ("%s:%s" % (src, line))) |