equal
deleted
inserted
replaced
893 self._nodecache = {nullid: nullrev} |
893 self._nodecache = {nullid: nullrev} |
894 self._nodepos = None |
894 self._nodepos = None |
895 self._compengine = 'zlib' |
895 self._compengine = 'zlib' |
896 self._maxdeltachainspan = -1 |
896 self._maxdeltachainspan = -1 |
897 self._withsparseread = False |
897 self._withsparseread = False |
|
898 self._sparserevlog = False |
898 self._srdensitythreshold = 0.50 |
899 self._srdensitythreshold = 0.50 |
899 self._srmingapsize = 262144 |
900 self._srmingapsize = 262144 |
900 |
901 |
901 mmapindexthreshold = None |
902 mmapindexthreshold = None |
902 v = REVLOG_DEFAULT_VERSION |
903 v = REVLOG_DEFAULT_VERSION |
921 self._compengine = opts['compengine'] |
922 self._compengine = opts['compengine'] |
922 if 'maxdeltachainspan' in opts: |
923 if 'maxdeltachainspan' in opts: |
923 self._maxdeltachainspan = opts['maxdeltachainspan'] |
924 self._maxdeltachainspan = opts['maxdeltachainspan'] |
924 if mmaplargeindex and 'mmapindexthreshold' in opts: |
925 if mmaplargeindex and 'mmapindexthreshold' in opts: |
925 mmapindexthreshold = opts['mmapindexthreshold'] |
926 mmapindexthreshold = opts['mmapindexthreshold'] |
926 self._withsparseread = bool(opts.get('with-sparse-read', False)) |
927 self._sparserevlog = bool(opts.get('sparse-revlog', False)) |
|
928 withsparseread = bool(opts.get('with-sparse-read', False)) |
|
929 # sparse-revlog forces sparse-read |
|
930 self._withsparseread = self._sparserevlog or withsparseread |
927 if 'sparse-read-density-threshold' in opts: |
931 if 'sparse-read-density-threshold' in opts: |
928 self._srdensitythreshold = opts['sparse-read-density-threshold'] |
932 self._srdensitythreshold = opts['sparse-read-density-threshold'] |
929 if 'sparse-read-min-gap-size' in opts: |
933 if 'sparse-read-min-gap-size' in opts: |
930 self._srmingapsize = opts['sparse-read-min-gap-size'] |
934 self._srmingapsize = opts['sparse-read-min-gap-size'] |
931 |
935 |