--- a/hgext3rd/evolve/evolvecmd.py Mon Apr 23 12:03:05 2018 +0100
+++ b/hgext3rd/evolve/evolvecmd.py Tue Apr 24 12:07:35 2018 +0100
@@ -1020,7 +1020,10 @@
"""Compute sets of commits divergent with a given one"""
cache = {}
base = {}
- for n in obsutil.allpredecessors(repo.obsstore, [ctx.node()]):
+ allpredecessors = getattr(obsutil, 'allpredecessors', None)
+ if allpredecessors is None: # <= Mercurial 4.3
+ allpredecessors = obsutil.allprecursors
+ for n in allpredecessors(repo.obsstore, [ctx.node()]):
if n == ctx.node():
# a node can't be a base for divergence with itself
continue