verify: expand a one liner into explicit commands
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 01 Jun 2021 08:58:53 +0200
changeset 47354 03dea8553114
parent 47353 5ed2aaab58b0
child 47355 0f4beb88ec18
verify: expand a one liner into explicit commands The result is not longer, but it is more edible. Differential Revision: https://phab.mercurial-scm.org/D10806
mercurial/verify.py
--- a/mercurial/verify.py	Tue Jun 01 08:54:53 2021 +0200
+++ b/mercurial/verify.py	Tue Jun 01 08:58:53 2021 +0200
@@ -139,11 +139,10 @@
                 if f and len(linkrevs) > 1:
                     try:
                         # attempt to filter down to real linkrevs
-                        linkrevs = [
-                            l
-                            for l in linkrevs
-                            if self.lrugetctx(l)[f].filenode() == node
-                        ]
+                        linkrevs = []
+                        for lr in linkrevs:
+                            if self.lrugetctx(lr)[f].filenode() == node:
+                                linkrevs.append(lr)
                     except Exception:
                         pass
                 self._warn(