Patchwork D924: config: add a missing preparewrite() call

login
register
mail settings
Submitter phabricator
Date Oct. 4, 2017, 1:42 p.m.
Message ID <204afe784689303580981e73029c612d@localhost.localdomain>
Download mbox | patch
Permalink /patch/24470/
State Not Applicable
Headers show

Comments

phabricator - Oct. 4, 2017, 1:42 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG0efdfb57b05c: config: add a missing preparewrite() call (authored by quark, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D924?vs=2384&id=2410

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

AFFECTED FILES
  mercurial/config.py

CHANGE DETAILS




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

Patch

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