Patchwork [2,of,2] revlog: disallow setting uncompressed length to None

login
register
mail settings
Submitter Yuya Nishihara
Date May 26, 2018, 2:49 a.m.
Message ID <b986ca72fc0f22ec4e04.1527302975@mimosa>
Download mbox | patch
Permalink /patch/31880/
State Accepted
Headers show

Comments

Yuya Nishihara - May 26, 2018, 2:49 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@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

Patch

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)