diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -855,7 +855,7 @@ class revlog(object): def rawsize(self, rev): """return the length of the uncompressed text for a given revision""" l = self.index[rev][2] - if l is not None and l >= 0: + if l >= 0: return l t = self.revision(rev, raw=True)