Mercurial > public > mercurial-scm > hg-stable
diff mercurial/context.py @ 38668:21846c94e605
revlog: delete isdescendantrev() in favor of isancestorrev()
As agreed on by Boris, Yuya, and me on D3929.
Differential Revision: https://phab.mercurial-scm.org/D3934
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 12 Jul 2018 08:14:21 -0700 |
parents | 160da69ba1bf |
children | fbec9c0b32d3 |
line wrap: on
line diff
--- a/mercurial/context.py Sat Jun 30 12:42:49 2018 +0530 +++ b/mercurial/context.py Thu Jul 12 08:14:21 2018 -0700 @@ -591,7 +591,7 @@ def descendant(self, other): """True if other is descendant of this changeset""" - return self._repo.changelog.isdescendantrev(other._rev, self._rev) + return self._repo.changelog.isancestorrev(self._rev, other._rev) def walk(self, match): '''Generates matching file names.'''