Mercurial > hg
comparison hgext/rebase.py @ 48935:2cce2fa5bcf7
py3: replace pycompat.itervalues(x) with x.values()
pycompat.itervalues(x) just calls x.values(). So this is equivalent.
The rewrite was perfomed via an automated search and replace.
Differential Revision: https://phab.mercurial-scm.org/D12341
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Tue, 01 Mar 2022 20:52:32 -0800 |
parents | f254fc73d956 |
children | 642e31cb55f0 |
comparison
equal
deleted
inserted
replaced
48934:06de08b36c82 | 48935:2cce2fa5bcf7 |
---|---|
2255 except error.RepoLookupError: | 2255 except error.RepoLookupError: |
2256 # i18n: column positioning for "hg summary" | 2256 # i18n: column positioning for "hg summary" |
2257 msg = _(b'rebase: (use "hg rebase --abort" to clear broken state)\n') | 2257 msg = _(b'rebase: (use "hg rebase --abort" to clear broken state)\n') |
2258 ui.write(msg) | 2258 ui.write(msg) |
2259 return | 2259 return |
2260 numrebased = len([i for i in pycompat.itervalues(state) if i >= 0]) | 2260 numrebased = len([i for i in state.values() if i >= 0]) |
2261 # i18n: column positioning for "hg summary" | 2261 # i18n: column positioning for "hg summary" |
2262 ui.write( | 2262 ui.write( |
2263 _(b'rebase: %s, %s (rebase --continue)\n') | 2263 _(b'rebase: %s, %s (rebase --continue)\n') |
2264 % ( | 2264 % ( |
2265 ui.label(_(b'%d rebased'), b'rebase.rebased') % numrebased, | 2265 ui.label(_(b'%d rebased'), b'rebase.rebased') % numrebased, |