Show More
@@ -384,17 +384,18 class revlog(object): | |||||
384 | self._writinghandles = None |
|
384 | self._writinghandles = None | |
385 |
|
385 | |||
386 | mmapindexthreshold = None |
|
386 | mmapindexthreshold = None | |
387 | v = REVLOG_DEFAULT_VERSION |
|
387 | opts = getattr(opener, 'options', {}) or {} | |
388 | opts = getattr(opener, 'options', None) |
|
388 | ||
389 | if opts is not None: |
|
|||
390 |
|
|
389 | if 'revlogv2' in opts: | |
391 |
|
|
390 | # version 2 revlogs always use generaldelta. | |
392 |
|
|
391 | v = REVLOGV2 | FLAG_GENERALDELTA | FLAG_INLINE_DATA | |
393 |
|
|
392 | elif 'revlogv1' in opts: | |
|
393 | v = REVLOGV1 | FLAG_INLINE_DATA | |||
394 |
|
|
394 | if 'generaldelta' in opts: | |
395 |
|
|
395 | v |= FLAG_GENERALDELTA | |
396 |
|
|
396 | else: | |
397 | v = 0 |
|
397 | v = REVLOG_DEFAULT_VERSION | |
|
398 | ||||
398 |
|
|
399 | if 'chunkcachesize' in opts: | |
399 |
|
|
400 | self._chunkcachesize = opts['chunkcachesize'] | |
400 |
|
|
401 | if 'maxchainlen' in opts: |
General Comments 0
You need to be logged in to leave comments.
Login now