comparison mercurial/obsolete.py @ 39920: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 e7aa113b14f7
children 99f0f052b6bf
comparison
equal deleted inserted replaced
39919:0428feb1f0d7 39920:bae6f1418a95
1014 1014
1015 # Effect flag can be different by relation 1015 # Effect flag can be different by relation
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,
1023 # which causes recomputation when we ask for prec.parents() above. 1023 # which causes recomputation when we ask for prec.parents() above.
1024 # Resulting in n^2 behavior. So let's prepare all of the args 1024 # Resulting in n^2 behavior. So let's prepare all of the args