mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
revlog: if start is nullrev, end is always a descendant
This commit is contained in:
parent
8e085520f4
commit
31a27ed9b9
@ -869,6 +869,8 @@ class revlog(object):
|
||||
return c
|
||||
|
||||
def descendant(self, start, end):
|
||||
if start == nullrev:
|
||||
return True
|
||||
for i in self.descendants(start):
|
||||
if i == end:
|
||||
return True
|
||||
|
Loading…
Reference in New Issue
Block a user