add documentation for revlog._prereadsize stable
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Thu, 15 Apr 2010 15:21:21 +0200
branchstable
changeset 10916 9c84395a338e
parent 10914 b7ca37b90762
child 10917 bce47e253b61
add documentation for revlog._prereadsize
mercurial/revlog.py
--- a/mercurial/revlog.py	Wed Apr 14 15:06:40 2010 -0400
+++ b/mercurial/revlog.py	Thu Apr 15 15:21:21 2010 +0200
@@ -31,9 +31,11 @@
 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