comparison mercurial/obsutil.py @ 39925:bae6f1418a95

obsolete: explicitly pass relation items to effectflag computation To track folds, we are about to change the content of `rel`. To simplify this change, we update the `geteffectflag` function beforehand.
author Boris Feld <boris.feld@octobus.net>
date Wed, 26 Sep 2018 23:37:43 +0200
parents 93175cba7edd
children c7618901584d
comparison
equal deleted inserted replaced
39924:0428feb1f0d7 39925:bae6f1418a95
411 411
412 if left != right: 412 if left != right:
413 return False 413 return False
414 return True 414 return True
415 415
416 def geteffectflag(relation): 416 def geteffectflag(source, successors):
417 """ From an obs-marker relation, compute what changed between the 417 """ From an obs-marker relation, compute what changed between the
418 predecessor and the successor. 418 predecessor and the successor.
419 """ 419 """
420 effects = 0 420 effects = 0
421 421
422 source = relation[0] 422 for changectx in successors:
423
424 for changectx in relation[1]:
425 # Check if description has changed 423 # Check if description has changed
426 if changectx.description() != source.description(): 424 if changectx.description() != source.description():
427 effects |= DESCCHANGED 425 effects |= DESCCHANGED
428 426
429 # Check if user has changed 427 # Check if user has changed