verify: use some intermediate variables instead of a multi-liner
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 01 Jun 2021 09:03:48 +0200
changeset 47359 9305824d3a97
parent 47358 ba8a9fbed897
child 47360 0693dc0b44fb
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
mercurial/verify.py
--- 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