verify: use some intermediate variables instead of a multi-liner
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 01 Jun 2021 09:11:07 +0200
changeset 47371 f39df5545cf2
parent 47370 80c690bf4953
child 47372 15f6887c9c68
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/D10817
mercurial/verify.py
--- a/mercurial/verify.py	Tue Jun 01 09:11:01 2021 +0200
+++ b/mercurial/verify.py	Tue Jun 01 09:11:07 2021 +0200
@@ -494,9 +494,8 @@
                     storefiles.remove(ff)
                 except KeyError:
                     if self.warnorphanstorefiles:
-                        self._warn(
-                            _(b" warning: revlog '%s' not in fncache!") % ff
-                        )
+                        msg = _(b" warning: revlog '%s' not in fncache!")
+                        self._warn(msg % ff)
                         self.fncachewarned = True
 
             if not len(fl) and (self.havecl or self.havemf):