mercurial/revlog.py
branchstable
changeset 10916 9c84395a338e
parent 10914 b7ca37b90762
child 10919 435615a676b0
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):