Details
Details
- Reviewers
Alphare - Group Reviewers
hg-reviewers - Commits
- rHGceafb0f81250: revlog: remove pycompat.iteritems()
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
( )
Alphare |
hg-reviewers |
No Linters Available |
No Unit Test Coverage |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/revlog.py (4 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
0a8ba2533a36 | a0fc991ea4cd | Gregory Szorc | Feb 21 2022, 1:12 PM |
Status | Author | Revision | |
---|---|---|---|
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | D12339 ui: use input() directly | |
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg | ||
Closed | indygreg |
if b'sparse-read-density-threshold' in opts: | if b'sparse-read-density-threshold' in opts: | ||||
self._srdensitythreshold = opts[b'sparse-read-density-threshold'] | self._srdensitythreshold = opts[b'sparse-read-density-threshold'] | ||||
if b'sparse-read-min-gap-size' in opts: | if b'sparse-read-min-gap-size' in opts: | ||||
self._srmingapsize = opts[b'sparse-read-min-gap-size'] | self._srmingapsize = opts[b'sparse-read-min-gap-size'] | ||||
if opts.get(b'enableellipsis'): | if opts.get(b'enableellipsis'): | ||||
self._flagprocessors[REVIDX_ELLIPSIS] = ellipsisprocessor | self._flagprocessors[REVIDX_ELLIPSIS] = ellipsisprocessor | ||||
# revlog v0 doesn't have flag processors | # revlog v0 doesn't have flag processors | ||||
for flag, processor in pycompat.iteritems( | for flag, processor in opts.get(b'flagprocessors', {}).items(): | ||||
opts.get(b'flagprocessors', {}) | |||||
): | |||||
flagutil.insertflagprocessor(flag, processor, self._flagprocessors) | flagutil.insertflagprocessor(flag, processor, self._flagprocessors) | ||||
if self._chunkcachesize <= 0: | if self._chunkcachesize <= 0: | ||||
raise error.RevlogError( | raise error.RevlogError( | ||||
_(b'revlog chunk cache size %r is not greater than 0') | _(b'revlog chunk cache size %r is not greater than 0') | ||||
% self._chunkcachesize | % self._chunkcachesize | ||||
) | ) | ||||
elif self._chunkcachesize & (self._chunkcachesize - 1): | elif self._chunkcachesize & (self._chunkcachesize - 1): |