comparison mercurial/verify.py @ 47356:a3c3924ccc7f

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/D10808
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 01 Jun 2021 08:59:50 +0200
parents 0f4beb88ec18
children fde1df74d73d
comparison
equal deleted inserted replaced
47355:0f4beb88ec18 47356:a3c3924ccc7f
151 lr = None # can't be trusted 151 lr = None # can't be trusted
152 152
153 try: 153 try:
154 p1, p2 = obj.parents(node) 154 p1, p2 = obj.parents(node)
155 if p1 not in seen and p1 != self.repo.nullid: 155 if p1 not in seen and p1 != self.repo.nullid:
156 self._err( 156 msg = _(b"unknown parent 1 %s of %s") % (short(p1), short(node))
157 lr, 157 self._err(lr, msg, f)
158 _(b"unknown parent 1 %s of %s") % (short(p1), short(node)),
159 f,
160 )
161 if p2 not in seen and p2 != self.repo.nullid: 158 if p2 not in seen and p2 != self.repo.nullid:
162 self._err( 159 self._err(
163 lr, 160 lr,
164 _(b"unknown parent 2 %s of %s") % (short(p2), short(node)), 161 _(b"unknown parent 2 %s of %s") % (short(p2), short(node)),
165 f, 162 f,