Mercurial > public > mercurial-scm > hg
comparison mercurial/revlog.py @ 48928:ceafb0f81250
revlog: remove pycompat.iteritems()
Differential Revision: https://phab.mercurial-scm.org/D12333
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 21 Feb 2022 11:12:26 -0700 |
parents | f254fc73d956 |
children | 642e31cb55f0 |
comparison
equal
deleted
inserted
replaced
48927:c17aee610bab | 48928:ceafb0f81250 |
---|---|
435 self._srmingapsize = opts[b'sparse-read-min-gap-size'] | 435 self._srmingapsize = opts[b'sparse-read-min-gap-size'] |
436 if opts.get(b'enableellipsis'): | 436 if opts.get(b'enableellipsis'): |
437 self._flagprocessors[REVIDX_ELLIPSIS] = ellipsisprocessor | 437 self._flagprocessors[REVIDX_ELLIPSIS] = ellipsisprocessor |
438 | 438 |
439 # revlog v0 doesn't have flag processors | 439 # revlog v0 doesn't have flag processors |
440 for flag, processor in pycompat.iteritems( | 440 for flag, processor in opts.get(b'flagprocessors', {}).items(): |
441 opts.get(b'flagprocessors', {}) | |
442 ): | |
443 flagutil.insertflagprocessor(flag, processor, self._flagprocessors) | 441 flagutil.insertflagprocessor(flag, processor, self._flagprocessors) |
444 | 442 |
445 if self._chunkcachesize <= 0: | 443 if self._chunkcachesize <= 0: |
446 raise error.RevlogError( | 444 raise error.RevlogError( |
447 _(b'revlog chunk cache size %r is not greater than 0') | 445 _(b'revlog chunk cache size %r is not greater than 0') |