##// END OF EJS Templates
revlog: reintroduce `revlog.descendant` as deprecated...
Boris Feld -
r38732:4ac3c207 default
parent child Browse files
Show More
@@ -1666,6 +1666,11 b' class revlog(object):'
1666 1666 a, b = self.rev(a), self.rev(b)
1667 1667 return self.isancestorrev(a, b)
1668 1668
1669 def descendant(self, a, b):
1670 msg = (b'revlog.descendant is deprecated, use revlog.isancestorrev')
1671 self._repo.ui.deprecwarn(msg, b'4.7')
1672 return self.isancestorrev(a, b)
1673
1669 1674 def isancestorrev(self, a, b):
1670 1675 """return True if revision a is an ancestor of revision b
1671 1676
General Comments 0
You need to be logged in to leave comments. Login now