Mercurial > hg
changeset 47359:9305824d3a97
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/D10811
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 01 Jun 2021 09:03:48 +0200 |
parents | ba8a9fbed897 |
children | 0693dc0b44fb |
files | mercurial/verify.py |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/verify.py Tue Jun 01 09:03:24 2021 +0200 +++ b/mercurial/verify.py Tue Jun 01 09:03:48 2021 +0200 @@ -211,10 +211,9 @@ if self.errors: ui.warn(_(b"%d integrity errors encountered!\n") % self.errors) if self.badrevs: - ui.warn( - _(b"(first damaged changeset appears to be %d)\n") - % min(self.badrevs) - ) + msg = _(b"(first damaged changeset appears to be %d)\n") + msg %= min(self.badrevs) + ui.warn(msg) return 1 return 0