comparison mercurial/wireprotov2server.py @ 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 89a2afe31e82
children 71443f742886
comparison
equal deleted inserted replaced
46061:44a52048c6d6 46062:14ff4929ca8c
1047 1047
1048 followingmeta = [] 1048 followingmeta = []
1049 followingdata = [] 1049 followingdata = []
1050 1050
1051 if b'revision' in fields: 1051 if b'revision' in fields:
1052 revisiondata = cl.rawdata(node) 1052 revisiondata = cl.revision(node)
1053 followingmeta.append((b'revision', len(revisiondata))) 1053 followingmeta.append((b'revision', len(revisiondata)))
1054 followingdata.append(revisiondata) 1054 followingdata.append(revisiondata)
1055 1055
1056 # TODO make it possible for extensions to wrap a function or register 1056 # TODO make it possible for extensions to wrap a function or register
1057 # a handler to service custom fields. 1057 # a handler to service custom fields.