verify: use some intermediate variables instead of a multi-liner
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 01 Jun 2021 09:05:23 +0200
changeset 47360 0693dc0b44fb
parent 47359 9305824d3a97
child 47361 bfb0ed91bb5e
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/D10812
mercurial/verify.py
--- a/mercurial/verify.py	Tue Jun 01 09:03:48 2021 +0200
+++ b/mercurial/verify.py	Tue Jun 01 09:05:23 2021 +0200
@@ -329,11 +329,8 @@
             if n in mflinkrevs:
                 del mflinkrevs[n]
             elif dir:
-                self._err(
-                    lr,
-                    _(b"%s not in parent-directory manifest") % short(n),
-                    label,
-                )
+                msg = _(b"%s not in parent-directory manifest") % short(n)
+                self._err(lr, msg, label)
             else:
                 self._err(lr, _(b"%s not in changesets") % short(n), label)