##// END OF EJS Templates
mergestate: replace `addmergedother()` with generic `addcommitinfo()` (API)...
Pulkit Goyal -
r45945:05d19ca3 default
parent child Browse files
Show More
@@ -1367,8 +1367,7 b' def applyupdates('
1367 for f, op in pycompat.iteritems(mresult.commitinfo):
1367 for f, op in pycompat.iteritems(mresult.commitinfo):
1368 # the other side of filenode was choosen while merging, store this in
1368 # the other side of filenode was choosen while merging, store this in
1369 # mergestate so that it can be reused on commit
1369 # mergestate so that it can be reused on commit
1370 if op[b'filenode-source'] == b'other':
1370 ms.addcommitinfo(f, op)
1371 ms.addmergedother(f)
1372
1371
1373 moves = []
1372 moves = []
1374
1373
@@ -592,8 +592,10 b' class mergestate(object):'
592 self._state[path] = [MERGE_RECORD_UNRESOLVED_PATH, frename, forigin]
592 self._state[path] = [MERGE_RECORD_UNRESOLVED_PATH, frename, forigin]
593 self._dirty = True
593 self._dirty = True
594
594
595 def addmergedother(self, path):
595 def addcommitinfo(self, path, data):
596 self._stateextras[path] = {b'filenode-source': b'other'}
596 """ stores information which is required at commit
597 into _stateextras """
598 self._stateextras[path].update(data)
597 self._dirty = True
599 self._dirty = True
598
600
599 def __contains__(self, dfile):
601 def __contains__(self, dfile):
General Comments 0
You need to be logged in to leave comments. Login now