--- a/mercurial/revlog.py Wed Jun 12 17:30:24 2019 +0100
+++ b/mercurial/revlog.py Fri Apr 26 00:28:22 2019 +0200
@@ -334,15 +334,21 @@
configured threshold.
If censorable is True, the revlog can have censored revisions.
+
+ If `upperboundcomp` is not None, this is the expected maximal gain from
+ compression for the data content.
"""
def __init__(self, opener, indexfile, datafile=None, checkambig=False,
- mmaplargeindex=False, censorable=False):
+ mmaplargeindex=False, censorable=False,
+ upperboundcomp=None):
"""
create a revlog object
opener is a function that abstracts the file opening operation
and can be used to implement COW semantics or the like.
+
"""
+ self.upperboundcomp = upperboundcomp
self.indexfile = indexfile
self.datafile = datafile or (indexfile[:-2] + ".d")
self.opener = opener