changeset 4258:697ec7c2f325

compat: drop 4.3 compatiblity code for `obsutil.allprecursors` function
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 19 Nov 2018 01:45:34 +0000
parents 4a8f59b69d37
children bccd5c2786ba
files hgext3rd/evolve/evolvecmd.py
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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