Show More
@@ -391,13 +391,13 b' class revlog(object):' | |||
|
391 | 391 | opts = getattr(self.opener, 'options', {}) or {} |
|
392 | 392 | |
|
393 | 393 | if 'revlogv2' in opts: |
|
394 | versionflags = REVLOGV2 | FLAG_INLINE_DATA | |
|
394 | newversionflags = REVLOGV2 | FLAG_INLINE_DATA | |
|
395 | 395 | elif 'revlogv1' in opts: |
|
396 | versionflags = REVLOGV1 | FLAG_INLINE_DATA | |
|
396 | newversionflags = REVLOGV1 | FLAG_INLINE_DATA | |
|
397 | 397 | if 'generaldelta' in opts: |
|
398 | versionflags |= FLAG_GENERALDELTA | |
|
398 | newversionflags |= FLAG_GENERALDELTA | |
|
399 | 399 | else: |
|
400 | versionflags = REVLOG_DEFAULT_VERSION | |
|
400 | newversionflags = REVLOG_DEFAULT_VERSION | |
|
401 | 401 | |
|
402 | 402 | if 'chunkcachesize' in opts: |
|
403 | 403 | self._chunkcachesize = opts['chunkcachesize'] |
@@ -446,10 +446,14 b' class revlog(object):' | |||
|
446 | 446 | if len(indexdata) > 0: |
|
447 | 447 | versionflags = versionformat_unpack(indexdata[:4])[0] |
|
448 | 448 | self._initempty = False |
|
449 | else: | |
|
450 | versionflags = newversionflags | |
|
449 | 451 | except IOError as inst: |
|
450 | 452 | if inst.errno != errno.ENOENT: |
|
451 | 453 | raise |
|
452 | 454 | |
|
455 | versionflags = newversionflags | |
|
456 | ||
|
453 | 457 | self.version = versionflags |
|
454 | 458 | |
|
455 | 459 | flags = versionflags & ~0xFFFF |
General Comments 0
You need to be logged in to leave comments.
Login now