revlog: if start is nullrev, end is always a descendant stable
authorNicolas Dumazet <nicdumz.commits@gmail.com>
Sun, 07 Nov 2010 18:16:07 +0900
branchstable
changeset 12949 6878eaa5a40d
parent 12943 7439ea4146f8
child 12950 2405b4a5964a
revlog: if start is nullrev, end is always a descendant
mercurial/revlog.py
--- a/mercurial/revlog.py	Mon Nov 08 01:41:42 2010 +0100
+++ b/mercurial/revlog.py	Sun Nov 07 18:16:07 2010 +0900
@@ -869,6 +869,8 @@
         return c
 
     def descendant(self, start, end):
+        if start == nullrev:
+            return True
         for i in self.descendants(start):
             if i == end:
                 return True