# HG changeset patch # User Benoit Boissinot # Date 2010-04-15 13:21:21 # Node ID 9c84395a338e99adf7d232e90fdba6351f1ec44e # Parent b7ca37b90762a3bb1e5600460b115b77f70e6a06 add documentation for revlog._prereadsize diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -31,9 +31,11 @@ REVLOG_DEFAULT_FLAGS = REVLOGNGINLINEDAT REVLOG_DEFAULT_FORMAT = REVLOGNG REVLOG_DEFAULT_VERSION = REVLOG_DEFAULT_FORMAT | REVLOG_DEFAULT_FLAGS +# amount of data read unconditionally, should be >= 4 +# when not inline: threshold for using lazy index _prereadsize = 1048576 - -_maxinline = 131072 # max size of revlog with inline data +# max size of revlog with inline data +_maxinline = 131072 RevlogError = error.RevlogError LookupError = error.LookupError