Show More
@@ -22,6 +22,7 b" def binopen(path, mode=b'rb'):" | |||
|
22 | 22 | if b'b' not in mode: |
|
23 | 23 | mode = mode + b'b' |
|
24 | 24 | return open(path, pycompat.sysstr(mode)) |
|
25 | binopen.options = {} | |
|
25 | 26 | |
|
26 | 27 | def printb(data, end=b'\n'): |
|
27 | 28 | sys.stdout.flush() |
@@ -355,7 +355,7 b' class revlog(object):' | |||
|
355 | 355 | |
|
356 | 356 | def _loadindex(self): |
|
357 | 357 | mmapindexthreshold = None |
|
358 |
opts = |
|
|
358 | opts = self.opener.options | |
|
359 | 359 | |
|
360 | 360 | if 'revlogv2' in opts: |
|
361 | 361 | newversionflags = REVLOGV2 | FLAG_INLINE_DATA |
@@ -363,7 +363,7 b' class revlog(object):' | |||
|
363 | 363 | newversionflags = REVLOGV1 | FLAG_INLINE_DATA |
|
364 | 364 | if 'generaldelta' in opts: |
|
365 | 365 | newversionflags |= FLAG_GENERALDELTA |
|
366 |
elif 'revlogv0' in |
|
|
366 | elif 'revlogv0' in self.opener.options: | |
|
367 | 367 | newversionflags = REVLOGV0 |
|
368 | 368 | else: |
|
369 | 369 | newversionflags = REVLOG_DEFAULT_VERSION |
@@ -115,6 +115,7 b' def build_opener(ui, authinfo):' | |||
|
115 | 115 | class statichttpvfs(vfsmod.abstractvfs): |
|
116 | 116 | def __init__(self, base): |
|
117 | 117 | self.base = base |
|
118 | self.options = {} | |
|
118 | 119 | |
|
119 | 120 | def __call__(self, path, mode='r', *args, **kw): |
|
120 | 121 | if mode not in ('r', 'rb'): |
General Comments 0
You need to be logged in to leave comments.
Login now