comparison mercurial/verify.py @ 47354: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
comparison
equal deleted inserted replaced
47353:5ed2aaab58b0 47354:03dea8553114
137 self._err(None, msg % (i, lr), f) 137 self._err(None, msg % (i, lr), f)
138 if linkrevs: 138 if linkrevs:
139 if f and len(linkrevs) > 1: 139 if f and len(linkrevs) > 1:
140 try: 140 try:
141 # attempt to filter down to real linkrevs 141 # attempt to filter down to real linkrevs
142 linkrevs = [ 142 linkrevs = []
143 l 143 for lr in linkrevs:
144 for l in linkrevs 144 if self.lrugetctx(lr)[f].filenode() == node:
145 if self.lrugetctx(l)[f].filenode() == node 145 linkrevs.append(lr)
146 ]
147 except Exception: 146 except Exception:
148 pass 147 pass
149 self._warn( 148 self._warn(
150 _(b" (expected %s)") 149 _(b" (expected %s)")
151 % b" ".join(map(pycompat.bytestr, linkrevs)) 150 % b" ".join(map(pycompat.bytestr, linkrevs))