diff -r 6afa928033bd -r a06b2b032557 hgext/rebase.py --- a/hgext/rebase.py Wed Jul 11 16:37:30 2018 -0700 +++ b/hgext/rebase.py Wed Jul 11 16:29:23 2018 -0700 @@ -1291,13 +1291,7 @@ # use unfiltered changelog since successorrevs may return filtered nodes assert repo.filtername is None cl = repo.changelog - def isancestor(a, b): - # take revision numbers instead of nodes - if a == b: - return True - elif a > b: - return False - return cl.isancestor(cl.node(a), cl.node(b)) + isancestor = cl.isancestorrev dest = destmap[rev] oldps = repo.changelog.parentrevs(rev) # old parents