py3: check for None before comparing with integers
Comparing None and integers on Python 3 is not allowed and raise error.
Differential Revision: https://phab.mercurial-scm.org/D3614
--- 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)