changeset 38177:7fa3408f83ef

revlog: disallow setting uncompressed length to None Backed out changeset a4942675de6b
author Yuya Nishihara <yuya@tcha.org>
date Sat, 26 May 2018 11:33:02 +0900
parents df5f6881cebd
children aea29e81753a
files mercurial/revlog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revlog.py	Sat May 26 11:31:51 2018 +0900
+++ b/mercurial/revlog.py	Sat May 26 11:33:02 2018 +0900
@@ -855,7 +855,7 @@
     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)