Show More
@@ -1016,7 +1016,7 b' def createmarkers(repo, relations, flag=' | |||
|
1016 | 1016 | if saveeffectflag: |
|
1017 | 1017 | # The effect flag is saved in a versioned field name for future |
|
1018 | 1018 | # evolution |
|
1019 |
effectflag = obsutil.geteffectflag( |
|
|
1019 | effectflag = obsutil.geteffectflag(prec, sucs) | |
|
1020 | 1020 | localmetadata[obsutil.EFFECTFLAGFIELD] = "%d" % effectflag |
|
1021 | 1021 | |
|
1022 | 1022 | # Creating the marker causes the hidden cache to become invalid, |
@@ -413,15 +413,13 b' def _cmpdiff(leftctx, rightctx):' | |||
|
413 | 413 | return False |
|
414 | 414 | return True |
|
415 | 415 | |
|
416 |
def geteffectflag( |
|
|
416 | def geteffectflag(source, successors): | |
|
417 | 417 | """ From an obs-marker relation, compute what changed between the |
|
418 | 418 | predecessor and the successor. |
|
419 | 419 | """ |
|
420 | 420 | effects = 0 |
|
421 | 421 | |
|
422 | source = relation[0] | |
|
423 | ||
|
424 | for changectx in relation[1]: | |
|
422 | for changectx in successors: | |
|
425 | 423 | # Check if description has changed |
|
426 | 424 | if changectx.description() != source.description(): |
|
427 | 425 | effects |= DESCCHANGED |
General Comments 0
You need to be logged in to leave comments.
Login now