diff -r b5891bf8ab13 -r fbec9c0b32d3 mercurial/context.py --- a/mercurial/context.py Thu Jul 12 09:25:02 2018 -0700 +++ b/mercurial/context.py Thu Jul 12 08:22:28 2018 -0700 @@ -589,8 +589,8 @@ short(n) for n in sorted(cahs) if n != anc)) return changectx(self._repo, anc) - def descendant(self, other): - """True if other is descendant of this changeset""" + def isancestorof(self, other): + """True if this changeset is an ancestor of other""" return self._repo.changelog.isancestorrev(self._rev, other._rev) def walk(self, match):