changeset 12949:6878eaa5a40d stable

revlog: if start is nullrev, end is always a descendant
author Nicolas Dumazet <nicdumz.commits@gmail.com>
date Sun, 07 Nov 2010 18:16:07 +0900
parents 7439ea4146f8
children 2405b4a5964a
files mercurial/revlog.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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