##// END OF EJS Templates
mergestate: explicitly forget 'dc' conflicts where the deleted side is picked...
Siddharth Agarwal -
r27122:77d760ba default
parent child Browse files
Show More
@@ -458,10 +458,13 b' class mergestate(object):'
458 if complete:
458 if complete:
459 action = None
459 action = None
460 if deleted:
460 if deleted:
461 if not fcd.isabsent():
461 if fcd.isabsent():
462 # dc: local picked. Need to drop if present, which may
463 # happen on re-resolves.
464 action = 'f'
465 else:
462 # cd: remote picked (or otherwise deleted)
466 # cd: remote picked (or otherwise deleted)
463 action = 'r'
467 action = 'r'
464 # else: dc: local picked (no action necessary)
465 else:
468 else:
466 if fcd.isabsent(): # dc: remote picked
469 if fcd.isabsent(): # dc: remote picked
467 action = 'g'
470 action = 'g'
@@ -511,7 +514,7 b' class mergestate(object):'
511
514
512 def actions(self):
515 def actions(self):
513 """return lists of actions to perform on the dirstate"""
516 """return lists of actions to perform on the dirstate"""
514 actions = {'r': [], 'a': [], 'g': []}
517 actions = {'r': [], 'f': [], 'a': [], 'g': []}
515 for f, (r, action) in self._results.iteritems():
518 for f, (r, action) in self._results.iteritems():
516 if action is not None:
519 if action is not None:
517 actions[action].append((f, None, "merge result"))
520 actions[action].append((f, None, "merge result"))
General Comments 0
You need to be logged in to leave comments. Login now