changeset 46062:14ff4929ca8c

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
author Joerg Sonnenberger <joerg@bec.de>
date Sat, 28 Nov 2020 15:04:44 +0100
parents 44a52048c6d6
children 88de2639901b
files mercurial/wireprotov2server.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/wireprotov2server.py	Sun Dec 06 14:45:04 2020 +0100
+++ b/mercurial/wireprotov2server.py	Sat Nov 28 15:04:44 2020 +0100
@@ -1049,7 +1049,7 @@
         followingdata = []
 
         if b'revision' in fields:
-            revisiondata = cl.rawdata(node)
+            revisiondata = cl.revision(node)
             followingmeta.append((b'revision', len(revisiondata)))
             followingdata.append(revisiondata)