Show More
@@ -33,6 +33,8 b' REVLOG_DEFAULT_VERSION = REVLOG_DEFAULT_' | |||||
33 |
|
33 | |||
34 | _prereadsize = 1048576 |
|
34 | _prereadsize = 1048576 | |
35 |
|
35 | |||
|
36 | _maxinline = 131072 # max size of revlog with inline data | |||
|
37 | ||||
36 | RevlogError = error.RevlogError |
|
38 | RevlogError = error.RevlogError | |
37 | LookupError = error.LookupError |
|
39 | LookupError = error.LookupError | |
38 |
|
40 | |||
@@ -1036,7 +1038,7 b' class revlog(object):' | |||||
1036 | return text |
|
1038 | return text | |
1037 |
|
1039 | |||
1038 | def checkinlinesize(self, tr, fp=None): |
|
1040 | def checkinlinesize(self, tr, fp=None): | |
1039 |
if not self._inline or (self.start(-2) + self.length(-2)) < |
|
1041 | if not self._inline or (self.start(-2) + self.length(-2)) < _maxinline: | |
1040 | return |
|
1042 | return | |
1041 |
|
1043 | |||
1042 | trinfo = tr.find(self.indexfile) |
|
1044 | trinfo = tr.find(self.indexfile) |
General Comments 0
You need to be logged in to leave comments.
Login now