[Updated] D10808: verify: use some intermediate variables instead of a multi-liner
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Tue Jun 1 19:37:52 UTC 2021
Closed by commit rHGa3c3924ccc7f: verify: use some intermediate variables instead of a multi-liner (authored by marmoute).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D10808?vs=28333&id=28366
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D10808/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D10808
AFFECTED FILES
mercurial/verify.py
CHANGE DETAILS
diff --git a/mercurial/verify.py b/mercurial/verify.py
--- a/mercurial/verify.py
+++ b/mercurial/verify.py
@@ -153,11 +153,8 @@
try:
p1, p2 = obj.parents(node)
if p1 not in seen and p1 != self.repo.nullid:
- self._err(
- lr,
- _(b"unknown parent 1 %s of %s") % (short(p1), short(node)),
- f,
- )
+ msg = _(b"unknown parent 1 %s of %s") % (short(p1), short(node))
+ self._err(lr, msg, f)
if p2 not in seen and p2 != self.repo.nullid:
self._err(
lr,
To: marmoute, #hg-reviewers
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210601/1ce414ff/attachment-0002.html>
More information about the Mercurial-patches
mailing list