Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revlog.py @ 38763:33ac6a72308a stable 4.7
revlog: fix descendant deprecated method
Fix the descendant deprecated method introduced earlier in this cycle.
This was caught by Yuya, thank you.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Wed, 01 Aug 2018 10:23:48 +0200 |
parents | 93777d16a25d |
children | 3730b779ed5b 83a505b5cf85 |
comparison
equal
deleted
inserted
replaced
38762:fe3ca1e6f786 | 38763:33ac6a72308a |
---|---|
1699 A revision is considered an ancestor of itself.""" | 1699 A revision is considered an ancestor of itself.""" |
1700 a, b = self.rev(a), self.rev(b) | 1700 a, b = self.rev(a), self.rev(b) |
1701 return self.isancestorrev(a, b) | 1701 return self.isancestorrev(a, b) |
1702 | 1702 |
1703 def descendant(self, a, b): | 1703 def descendant(self, a, b): |
1704 msg = (b'revlog.descendant is deprecated, use revlog.isancestorrev') | 1704 msg = 'revlog.descendant is deprecated, use revlog.isancestorrev' |
1705 self._repo.ui.deprecwarn(msg, b'4.7') | 1705 util.nouideprecwarn(msg, '4.7') |
1706 return self.isancestorrev(a, b) | 1706 return self.isancestorrev(a, b) |
1707 | 1707 |
1708 def isancestorrev(self, a, b): | 1708 def isancestorrev(self, a, b): |
1709 """return True if revision a is an ancestor of revision b | 1709 """return True if revision a is an ancestor of revision b |
1710 | 1710 |