##// END OF EJS Templates
obsolete: explicitly pass relation items to effectflag computation...
Boris Feld -
r39956:bae6f141 default
parent child Browse files
Show More
@@ -1016,7 +1016,7 b' def createmarkers(repo, relations, flag='
1016 if saveeffectflag:
1016 if saveeffectflag:
1017 # The effect flag is saved in a versioned field name for future
1017 # The effect flag is saved in a versioned field name for future
1018 # evolution
1018 # evolution
1019 effectflag = obsutil.geteffectflag(rel)
1019 effectflag = obsutil.geteffectflag(prec, sucs)
1020 localmetadata[obsutil.EFFECTFLAGFIELD] = "%d" % effectflag
1020 localmetadata[obsutil.EFFECTFLAGFIELD] = "%d" % effectflag
1021
1021
1022 # Creating the marker causes the hidden cache to become invalid,
1022 # Creating the marker causes the hidden cache to become invalid,
@@ -413,15 +413,13 b' def _cmpdiff(leftctx, rightctx):'
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
General Comments 0
You need to be logged in to leave comments. Login now