Show More
@@ -286,6 +286,11 b' class mergestate(object):' | |||
|
286 | 286 | def commit(self): |
|
287 | 287 | """Write current state on disk (if necessary)""" |
|
288 | 288 | if self._dirty: |
|
289 | records = self._makerecords() | |
|
290 | self._writerecords(records) | |
|
291 | self._dirty = False | |
|
292 | ||
|
293 | def _makerecords(self): | |
|
289 | 294 |
|
|
290 | 295 |
|
|
291 | 296 |
|
@@ -297,8 +302,7 b' class mergestate(object):' | |||
|
297 | 302 |
|
|
298 | 303 |
|
|
299 | 304 |
|
|
300 | self._writerecords(records) | |
|
301 | self._dirty = False | |
|
305 | return records | |
|
302 | 306 | |
|
303 | 307 | def _writerecords(self, records): |
|
304 | 308 | """Write current state on disk (both v1 and v2)""" |
General Comments 0
You need to be logged in to leave comments.
Login now