Mercurial > public > mercurial-scm > hg
comparison mercurial/exchange.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 |
---|---|
852 if pushop.remotephases is not None and hasphaseheads: | 852 if pushop.remotephases is not None and hasphaseheads: |
853 # check that the remote phase has not changed | 853 # check that the remote phase has not changed |
854 checks = {p: [] for p in phases.allphases} | 854 checks = {p: [] for p in phases.allphases} |
855 checks[phases.public].extend(pushop.remotephases.publicheads) | 855 checks[phases.public].extend(pushop.remotephases.publicheads) |
856 checks[phases.draft].extend(pushop.remotephases.draftroots) | 856 checks[phases.draft].extend(pushop.remotephases.draftroots) |
857 if any(pycompat.itervalues(checks)): | 857 if any(checks.values()): |
858 for phase in checks: | 858 for phase in checks: |
859 checks[phase].sort() | 859 checks[phase].sort() |
860 checkdata = phases.binaryencode(checks) | 860 checkdata = phases.binaryencode(checks) |
861 bundler.newpart(b'check:phases', data=checkdata) | 861 bundler.newpart(b'check:phases', data=checkdata) |
862 | 862 |