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
--- 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(