[Request] [+ ] D10806: verify: expand a one liner into explicit commands
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Tue Jun 1 09:53:52 UTC 2021
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
The result is not longer, but it is more edible.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D10806
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
@@ -139,11 +139,10 @@
if f and len(linkrevs) > 1:
try:
# attempt to filter down to real linkrevs
- linkrevs = [
- l
- for l in linkrevs
- if self.lrugetctx(l)[f].filenode() == node
- ]
+ linkrevs = []
+ for lr in linkrevs:
+ if self.lrugetctx(lr)[f].filenode() == node:
+ linkrevs.append(lr)
except Exception:
pass
self._warn(
To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20210601/448132c9/attachment.html>
More information about the Mercurial-patches
mailing list