From patchwork Sat Nov 28 14:05:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D9445: sidedata: send the correct revision data for wireproto v2 From: phabricator X-Patchwork-Id: 47723 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Sat, 28 Nov 2020 14:05:04 +0000 joerg.sonnenberger created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY 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. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D9445 AFFECTED FILES mercurial/wireprotov2server.py CHANGE DETAILS To: joerg.sonnenberger, #hg-reviewers Cc: mercurial-patches, mercurial-devel diff --git a/mercurial/wireprotov2server.py b/mercurial/wireprotov2server.py --- a/mercurial/wireprotov2server.py +++ b/mercurial/wireprotov2server.py @@ -1046,7 +1046,7 @@ followingdata = [] if b'revision' in fields: - revisiondata = cl.rawdata(node) + revisiondata = cl.revision(node) followingmeta.append((b'revision', len(revisiondata))) followingdata.append(revisiondata)