Mercurial > hg-stable
changeset 47360:03dea8553114
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
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 01 Jun 2021 08:58:53 +0200 |
parents | 5ed2aaab58b0 |
children | 0f4beb88ec18 |
files | mercurial/verify.py |
diffstat | 1 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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(