# HG changeset patch # User Pierre-Yves David # Date 1622530733 -7200 # Node ID 03dea855311493b3f7f66712ac674673f134264d # Parent 5ed2aaab58b0828658a9fad6d74c7c551978a74f 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 diff -r 5ed2aaab58b0 -r 03dea8553114 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(