compat: drop 4.3 compatiblity code for `obsutil.allprecursors` function
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 19 Nov 2018 01:45:34 +0000
changeset 4258 697ec7c2f325
parent 4257 4a8f59b69d37
child 4259 bccd5c2786ba
compat: drop 4.3 compatiblity code for `obsutil.allprecursors` function
hgext3rd/evolve/evolvecmd.py
--- a/hgext3rd/evolve/evolvecmd.py	Mon Nov 19 01:44:28 2018 +0000
+++ b/hgext3rd/evolve/evolvecmd.py	Mon Nov 19 01:45:34 2018 +0000
@@ -1305,10 +1305,7 @@
     """Compute sets of commits divergent with a given one"""
     cache = {}
     base = {}
-    allpredecessors = getattr(obsutil, 'allpredecessors', None)
-    if allpredecessors is None: # <= Mercurial 4.3
-        allpredecessors = obsutil.allprecursors
-    for n in allpredecessors(repo.obsstore, [ctx.node()]):
+    for n in obsutil.allpredecessors(repo.obsstore, [ctx.node()]):
         if n == ctx.node():
             # a node can't be a base for divergence with itself
             continue