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