mercurial/revlog.py
changeset 10900 cf016c9831d1
parent 10897 adb6a291bbdb
child 10915 c9543bc6be16
--- a/mercurial/revlog.py	Tue Apr 13 23:04:46 2010 +0200
+++ b/mercurial/revlog.py	Tue Apr 13 17:58:38 2010 -0400
@@ -33,6 +33,8 @@
 
 _prereadsize = 1048576
 
+_maxinline = 131072                     # max size of revlog with inline data
+
 RevlogError = error.RevlogError
 LookupError = error.LookupError
 
@@ -1036,7 +1038,7 @@
         return text
 
     def checkinlinesize(self, tr, fp=None):
-        if not self._inline or (self.start(-2) + self.length(-2)) < 131072:
+        if not self._inline or (self.start(-2) + self.length(-2)) < _maxinline:
             return
 
         trinfo = tr.find(self.indexfile)