diff 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
line wrap: on
line diff
--- a/mercurial/obsolete.py	Wed Sep 26 22:45:44 2018 +0200
+++ b/mercurial/obsolete.py	Wed Sep 26 23:37:43 2018 +0200
@@ -1016,7 +1016,7 @@
             if saveeffectflag:
                 # The effect flag is saved in a versioned field name for future
                 # evolution
-                effectflag = obsutil.geteffectflag(rel)
+                effectflag = obsutil.geteffectflag(prec, sucs)
                 localmetadata[obsutil.EFFECTFLAGFIELD] = "%d" % effectflag
 
             # Creating the marker causes the hidden cache to become invalid,