Mercurial > hg
comparison mercurial/bundle2.py @ 35813:768326377e4d stable
bundle2: fix the formatting of the stream part requirements
Use the same pre-encoded normalization as bundlespecs for the stream v2 part
requirements. As it touch the wire protocol, it needs to change before the
release.
This was spotted by Gregory Szorc.
Differential Revision: https://phab.mercurial-scm.org/D1950
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Wed, 31 Jan 2018 16:31:34 +0100 |
parents | e35320ce8043 |
children | b587a889b97e |
comparison
equal
deleted
inserted
replaced
35812:84965e5f3241 | 35813:768326377e4d |
---|---|
2141 op.addhookargs(hookargs) | 2141 op.addhookargs(hookargs) |
2142 | 2142 |
2143 @parthandler('stream2', ('requirements', 'filecount', 'bytecount')) | 2143 @parthandler('stream2', ('requirements', 'filecount', 'bytecount')) |
2144 def handlestreamv2bundle(op, part): | 2144 def handlestreamv2bundle(op, part): |
2145 | 2145 |
2146 requirements = part.params['requirements'].split() | 2146 requirements = urlreq.unquote(part.params['requirements']).split(',') |
2147 filecount = int(part.params['filecount']) | 2147 filecount = int(part.params['filecount']) |
2148 bytecount = int(part.params['bytecount']) | 2148 bytecount = int(part.params['bytecount']) |
2149 | 2149 |
2150 repo = op.repo | 2150 repo = op.repo |
2151 if len(repo): | 2151 if len(repo): |