[Updated] D9831: exchangev2: avoid second look-up by node
joerg.sonnenberger (Joerg Sonnenberger)
phabricator at mercurial-scm.org
Thu Jan 21 12:24:33 UTC 2021
Closed by commit rHG009130064813: exchangev2: avoid second look-up by node (authored by joerg.sonnenberger).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D9831?vs=25143&id=25189
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D9831/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D9831
AFFECTED FILES
mercurial/exchangev2.py
CHANGE DETAILS
diff --git a/mercurial/exchangev2.py b/mercurial/exchangev2.py
--- a/mercurial/exchangev2.py
+++ b/mercurial/exchangev2.py
@@ -364,12 +364,13 @@
def onchangeset(cl, node):
progress.increment()
- revision = cl.changelogrevision(node)
+ rev = cl.rev(node)
+ revision = cl.changelogrevision(rev)
added.append(node)
# We need to preserve the mapping of changelog revision to node
# so we can set the linkrev accordingly when manifests are added.
- manifestnodes[cl.rev(node)] = revision.manifest
+ manifestnodes[rev] = revision.manifest
nodesbyphase = {phase: set() for phase in phases.phasenames.values()}
remotebookmarks = {}
To: joerg.sonnenberger, #hg-reviewers, pulkit
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210121/ae784024/attachment-0002.html>
More information about the Mercurial-patches
mailing list