revlog: if start is nullrev, end is always a descendant

This commit is contained in:
Nicolas Dumazet 2010-11-07 18:16:07 +09:00
parent 8e085520f4
commit 31a27ed9b9

View File

@ -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