Mercurial > hg-stable
changeset 10913:f2ecc5733c89 stable
revlog: factor out _maxinline global.
This lets us change the threshold at which a *.d file will be split
out, which should make it much easier to construct test cases that
probe revlogs with a separate data file.
(issue2137)
author | Greg Ward <greg-hg@gerg.ca> |
---|---|
date | Tue, 13 Apr 2010 17:58:38 -0400 |
parents | 29a83fb8c067 |
children | b7ca37b90762 |
files | mercurial/revlog.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revlog.py Wed Apr 14 19:35:54 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 @@ -1010,7 +1012,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)