##// END OF EJS Templates
context: reintroduce `ctx.descendant` as deprecated...
Boris Feld -
r38731:6a032a8f default
parent child Browse files
Show More
@@ -589,6 +589,12 b' class changectx(basectx):'
589 short(n) for n in sorted(cahs) if n != anc))
589 short(n) for n in sorted(cahs) if n != anc))
590 return changectx(self._repo, anc)
590 return changectx(self._repo, anc)
591
591
592 def descendant(self, other):
593 msg = (b'ctx.descendant(other) is deprecated, '
594 'use ctx.isancestorof(other)')
595 self._repo.ui.deprecwarn(msg, b'4.7')
596 return self.isancestorof(other)
597
592 def isancestorof(self, other):
598 def isancestorof(self, other):
593 """True if this changeset is an ancestor of other"""
599 """True if this changeset is an ancestor of other"""
594 return self._repo.changelog.isancestorrev(self._rev, other._rev)
600 return self._repo.changelog.isancestorrev(self._rev, other._rev)
General Comments 0
You need to be logged in to leave comments. Login now