diff mercurial/exchange.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 84965e5f3241
children 04c319a07c7b
line wrap: on
line diff
--- a/mercurial/exchange.py	Mon Jan 29 10:28:10 2018 +0100
+++ b/mercurial/exchange.py	Wed Jan 31 16:31:34 2018 +0100
@@ -1793,7 +1793,7 @@
     bundler.prefercompressed = False
 
     filecount, bytecount, it = streamclone.generatev2(repo)
-    requirements = ' '.join(sorted(repo.requirements))
+    requirements = _formatrequirementsspec(repo.requirements)
     part = bundler.newpart('stream2', data=it)
     part.addparam('bytecount', '%d' % bytecount, mandatory=True)
     part.addparam('filecount', '%d' % filecount, mandatory=True)