Mercurial > public > mercurial-scm > hg
comparison mercurial/verify.py @ 47370:ab5fd39cb402
verify: use some intermediate variables instead of a multi-liner
This is shorter and easier to read as the indentation remains the same.
Differential Revision: https://phab.mercurial-scm.org/D10822
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 01 Jun 2021 09:18:27 +0200 |
parents | 041d6515bb0f |
children | 2174f54aab18 |
comparison
equal
deleted
inserted
replaced
47369:041d6515bb0f | 47370:ab5fd39cb402 |
---|---|
573 | 573 |
574 # cross-check | 574 # cross-check |
575 if f in filenodes: | 575 if f in filenodes: |
576 fns = [(v, k) for k, v in pycompat.iteritems(filenodes[f])] | 576 fns = [(v, k) for k, v in pycompat.iteritems(filenodes[f])] |
577 for lr, node in sorted(fns): | 577 for lr, node in sorted(fns): |
578 self._err( | 578 msg = _(b"manifest refers to unknown revision %s") |
579 lr, | 579 self._err(lr, msg % short(node), f) |
580 _(b"manifest refers to unknown revision %s") | |
581 % short(node), | |
582 f, | |
583 ) | |
584 progress.complete() | 580 progress.complete() |
585 | 581 |
586 if self.warnorphanstorefiles: | 582 if self.warnorphanstorefiles: |
587 for f in sorted(storefiles): | 583 for f in sorted(storefiles): |
588 self._warn(_(b"warning: orphan data file '%s'") % f) | 584 self._warn(_(b"warning: orphan data file '%s'") % f) |