evolvecmd: compatibility with older geteffectflag() that took a tuple
Before bae6f1418a95 the function took a tuple of 2 arguments instead of these 2
arguments directly.
--- a/hgext3rd/evolve/evolvecmd.py Wed Mar 06 21:42:32 2019 +0800
+++ b/hgext3rd/evolve/evolvecmd.py Wed Mar 06 21:47:08 2019 +0800
@@ -670,7 +670,11 @@
if saveeffectflag:
# The effect flag is saved in a versioned field name for
# future evolution
- effectflag = obsutil.geteffectflag(prec, (succ,))
+ try:
+ effectflag = obsutil.geteffectflag(prec, (succ,))
+ except TypeError:
+ # hg <= 4.7
+ effectflag = obsutil.geteffectflag((prec, (succ,)))
metadata[obsutil.EFFECTFLAGFIELD] = "%d" % effectflag
# create markers