# HG changeset patch # User Joerg Sonnenberger # Date 2020-11-28 14:04:44 # Node ID 14ff4929ca8ce1a2f55861ba0ce1d65ef8e9d18d # Parent 44a52048c6d608ebda48f0c55247aae10a002ccc sidedata: send the correct revision data for wireproto v2 When no sidedata is present, rawdata() and revision() are the same. But as soon as sidedata is present, the way it is currently stored will change the rawdata and that is not desired here, so switch to the correct data accessor. Differential Revision: https://phab.mercurial-scm.org/D9445 diff --git a/mercurial/wireprotov2server.py b/mercurial/wireprotov2server.py --- a/mercurial/wireprotov2server.py +++ b/mercurial/wireprotov2server.py @@ -1049,7 +1049,7 @@ def changesetdata(repo, proto, revisions followingdata = [] if b'revision' in fields: - revisiondata = cl.rawdata(node) + revisiondata = cl.revision(node) followingmeta.append((b'revision', len(revisiondata))) followingdata.append(revisiondata)