Show More
@@ -415,6 +415,10 b' class revlog(object):' | |||||
415 | self._srdensitythreshold = 0.50 |
|
415 | self._srdensitythreshold = 0.50 | |
416 | self._srmingapsize = 262144 |
|
416 | self._srmingapsize = 262144 | |
417 |
|
417 | |||
|
418 | # Make copy of flag processors so each revlog instance can support | |||
|
419 | # custom flags. | |||
|
420 | self._flagprocessors = dict(_flagprocessors) | |||
|
421 | ||||
418 | mmapindexthreshold = None |
|
422 | mmapindexthreshold = None | |
419 | v = REVLOG_DEFAULT_VERSION |
|
423 | v = REVLOG_DEFAULT_VERSION | |
420 | opts = getattr(opener, 'options', None) |
|
424 | opts = getattr(opener, 'options', None) | |
@@ -1707,11 +1711,11 b' class revlog(object):' | |||||
1707 | if flag & flags: |
|
1711 | if flag & flags: | |
1708 | vhash = True |
|
1712 | vhash = True | |
1709 |
|
1713 | |||
1710 | if flag not in _flagprocessors: |
|
1714 | if flag not in self._flagprocessors: | |
1711 | message = _("missing processor for flag '%#x'") % (flag) |
|
1715 | message = _("missing processor for flag '%#x'") % (flag) | |
1712 | raise RevlogError(message) |
|
1716 | raise RevlogError(message) | |
1713 |
|
1717 | |||
1714 | processor = _flagprocessors[flag] |
|
1718 | processor = self._flagprocessors[flag] | |
1715 | if processor is not None: |
|
1719 | if processor is not None: | |
1716 | readtransform, writetransform, rawtransform = processor |
|
1720 | readtransform, writetransform, rawtransform = processor | |
1717 |
|
1721 |
General Comments 0
You need to be logged in to leave comments.
Login now