changeset 30268:dc7c4dbc1af9

changegroup: use changelogrevision() Using offsets for accessing changelog entries isn't very readable. As a bonus, changelog.changelogrevision() also accepts a revision, so we don't need to perform the inline node resolution either.
author Gregory Szorc <gregory.szorc@gmail.com>
date Tue, 01 Nov 2016 18:29:09 -0700
parents d92777f98524
children d71db0e3b7b9
files mercurial/changegroup.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/changegroup.py	Tue Nov 01 18:28:03 2016 -0700
+++ b/mercurial/changegroup.py	Tue Nov 01 18:29:09 2016 -0700
@@ -334,7 +334,7 @@
                     ml = repo.manifestlog
                     # validate incoming csets have their manifests
                     for cset in xrange(clstart, clend):
-                        mfnode = cl.read(cl.node(cset))[0]
+                        mfnode = cl.changelogrevision(cset).manifest
                         mfest = ml[mfnode].readdelta()
                         # store file nodes we must see
                         for f, n in mfest.iteritems():