##// END OF EJS Templates
revlog: always process opener options...
Gregory Szorc -
r41236:cecf3f8b default
parent child Browse files
Show More
@@ -384,17 +384,18 class revlog(object):
384 384 self._writinghandles = None
385 385
386 386 mmapindexthreshold = None
387 v = REVLOG_DEFAULT_VERSION
388 opts = getattr(opener, 'options', None)
389 if opts is not None:
387 opts = getattr(opener, 'options', {}) or {}
388
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