[PATCH 2 of 2] revlog: disallow setting uncompressed length to None
Yuya Nishihara
yuya at tcha.org
Fri May 25 22:49:35 EDT 2018
# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1527301982 -32400
# Sat May 26 11:33:02 2018 +0900
# Node ID b986ca72fc0f22ec4e04cff722eb9efa2a61dff5
# Parent 31143eaaf90624060f7bd894421daafa5226605c
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
@@ -854,7 +854,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)
More information about the Mercurial-devel
mailing list