mercurial/revlog.py
changeset 38090 a4942675de6b
parent 37971 3ac950cd5978
child 38102 9bf0bd4d7a2e
--- a/mercurial/revlog.py	Sat May 19 18:58:35 2018 +0530
+++ b/mercurial/revlog.py	Sat May 19 18:59:21 2018 +0530
@@ -846,7 +846,7 @@
     def rawsize(self, rev):
         """return the length of the uncompressed text for a given revision"""
         l = self.index[rev][2]
-        if l >= 0:
+        if l is not None and l >= 0:
             return l
 
         t = self.revision(rev, raw=True)