# HG changeset patch # User Yuya Nishihara # Date 2018-05-26 02:33:02 # Node ID 7fa3408f83ef1a04e2d23ab6f8498833b450e589 # Parent df5f6881cebd6274a64357796cb33d9a18db9db8 revlog: disallow setting uncompressed length to None Backed out changeset a4942675de6b 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)