[Updated] D10806: verify: expand a one liner into explicit commands
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Tue Jun 1 19:37:33 UTC 2021
Closed by commit rHG03dea8553114: verify: expand a one liner into explicit commands (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/D10806?vs=28331&id=28364
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D10806/new/
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210601/7e5e62da/attachment-0002.html>
More information about the Mercurial-patches
mailing list