mercurial/config.py
changeset 34454 0efdfb57b05c
parent 34357 c41444a39de2
child 34713 e5a2cfc524d4
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)))