comparison mercurial/verify.py @ 47355:0f4beb88ec18

verify: use some intermediate variables instead of a multi-liner This is shorter and easier to read as the indentation remains the same. Differential Revision: https://phab.mercurial-scm.org/D10807
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 01 Jun 2021 08:59:07 +0200
parents 03dea8553114
children a3c3924ccc7f
comparison
equal deleted inserted replaced
47354:03dea8553114 47355:0f4beb88ec18
143 for lr in linkrevs: 143 for lr in linkrevs:
144 if self.lrugetctx(lr)[f].filenode() == node: 144 if self.lrugetctx(lr)[f].filenode() == node:
145 linkrevs.append(lr) 145 linkrevs.append(lr)
146 except Exception: 146 except Exception:
147 pass 147 pass
148 self._warn( 148 msg = _(b" (expected %s)")
149 _(b" (expected %s)") 149 msg %= b" ".join(map(pycompat.bytestr, linkrevs))
150 % b" ".join(map(pycompat.bytestr, linkrevs)) 150 self._warn(msg)
151 )
152 lr = None # can't be trusted 151 lr = None # can't be trusted
153 152
154 try: 153 try:
155 p1, p2 = obj.parents(node) 154 p1, p2 = obj.parents(node)
156 if p1 not in seen and p1 != self.repo.nullid: 155 if p1 not in seen and p1 != self.repo.nullid: