[Updated] D10820: verify: use some intermediate variables instead of a multi-liner
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Tue Jun 1 19:39:04 UTC 2021
Closed by commit rHG1a0f177b300a: 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/D10820?vs=28345&id=28377
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D10820/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D10820
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
@@ -554,15 +554,8 @@
self._warn(WARN_UNKNOWN_COPY_SOURCE % (f, ctx))
fl2 = repo.file(rp[0])
if not len(fl2):
- self._err(
- lr,
- _(
- b"empty or missing copy source revlog "
- b"%s:%s"
- )
- % (rp[0], short(rp[1])),
- f,
- )
+ m = _(b"empty or missing copy source revlog %s:%s")
+ self._err(lr, m % (rp[0], short(rp[1])), f)
elif rp[1] == self.repo.nullid:
ui.note(
_(
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/22baf09a/attachment-0002.html>
More information about the Mercurial-patches
mailing list