Mercurial > hg
comparison mercurial/revlog.py @ 10916:9c84395a338e stable
add documentation for revlog._prereadsize
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Thu, 15 Apr 2010 15:21:21 +0200 |
parents | b7ca37b90762 |
children | 435615a676b0 |
comparison
equal
deleted
inserted
replaced
10914:b7ca37b90762 | 10916:9c84395a338e |
---|---|
29 REVLOGNGINLINEDATA = (1 << 16) | 29 REVLOGNGINLINEDATA = (1 << 16) |
30 REVLOG_DEFAULT_FLAGS = REVLOGNGINLINEDATA | 30 REVLOG_DEFAULT_FLAGS = REVLOGNGINLINEDATA |
31 REVLOG_DEFAULT_FORMAT = REVLOGNG | 31 REVLOG_DEFAULT_FORMAT = REVLOGNG |
32 REVLOG_DEFAULT_VERSION = REVLOG_DEFAULT_FORMAT | REVLOG_DEFAULT_FLAGS | 32 REVLOG_DEFAULT_VERSION = REVLOG_DEFAULT_FORMAT | REVLOG_DEFAULT_FLAGS |
33 | 33 |
34 # amount of data read unconditionally, should be >= 4 | |
35 # when not inline: threshold for using lazy index | |
34 _prereadsize = 1048576 | 36 _prereadsize = 1048576 |
35 | 37 # max size of revlog with inline data |
36 _maxinline = 131072 # max size of revlog with inline data | 38 _maxinline = 131072 |
37 | 39 |
38 RevlogError = error.RevlogError | 40 RevlogError = error.RevlogError |
39 LookupError = error.LookupError | 41 LookupError = error.LookupError |
40 | 42 |
41 def getoffset(q): | 43 def getoffset(q): |