D924: config: add a missing preparewrite() call

quark (Jun Wu) phabricator at mercurial-scm.org
Tue Oct 3 19:52:08 UTC 2017


quark created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  Thanks Yuya for pointing this out in https://phab.mercurial-scm.org/D808.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D924

AFFECTED FILES
  mercurial/config.py

CHANGE DETAILS

diff --git a/mercurial/config.py b/mercurial/config.py
--- a/mercurial/config.py
+++ b/mercurial/config.py
@@ -177,6 +177,7 @@
                 if sections and section not in sections:
                     continue
                 if self.get(section, name) is not None:
+                    self._data[section] = self._data[section].preparewrite()
                     del self._data[section][name]
                 self._unset.append((section, name))
                 continue



To: quark, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list