equal
deleted
inserted
replaced
1705 |
1705 |
1706 A revision is considered an ancestor of itself.""" |
1706 A revision is considered an ancestor of itself.""" |
1707 a, b = self.rev(a), self.rev(b) |
1707 a, b = self.rev(a), self.rev(b) |
1708 return self.isancestorrev(a, b) |
1708 return self.isancestorrev(a, b) |
1709 |
1709 |
1710 def descendant(self, a, b): |
|
1711 msg = 'revlog.descendant is deprecated, use revlog.isancestorrev' |
|
1712 util.nouideprecwarn(msg, '4.7') |
|
1713 return self.isancestorrev(a, b) |
|
1714 |
|
1715 def isancestorrev(self, a, b): |
1710 def isancestorrev(self, a, b): |
1716 """return True if revision a is an ancestor of revision b |
1711 """return True if revision a is an ancestor of revision b |
1717 |
1712 |
1718 A revision is considered an ancestor of itself. |
1713 A revision is considered an ancestor of itself. |
1719 |
1714 |