diff --git a/mercurial/context.py b/mercurial/context.py index ff1182d166a24979d4e3b06985f095e2cb00a669_bWVyY3VyaWFsL2NvbnRleHQucHk=..6a032a8f741b3073a59ee48de3724e17d243672b_bWVyY3VyaWFsL2NvbnRleHQucHk= 100644 --- a/mercurial/context.py +++ b/mercurial/context.py @@ -589,6 +589,12 @@ short(n) for n in sorted(cahs) if n != anc)) return changectx(self._repo, anc) + def descendant(self, other): + msg = (b'ctx.descendant(other) is deprecated, ' + 'use ctx.isancestorof(other)') + self._repo.ui.deprecwarn(msg, b'4.7') + return self.isancestorof(other) + def isancestorof(self, other): """True if this changeset is an ancestor of other""" return self._repo.changelog.isancestorrev(self._rev, other._rev)