stream: sort stream capability before serialisation
authorPierre-Yves David <pierre-yves.david@fb.com>
Tue, 20 Oct 2015 12:28:42 +0200
changeset 26911 d7e5e4da8394
parent 26910 0856f1bfbe1e
child 26912 f40f62ea43e0
stream: sort stream capability before serialisation We want that capability to be stable in our testing. This is currently not an issue because the set is size 1, but this will be once generaldelta related data gets in there.
mercurial/wireproto.py
--- a/mercurial/wireproto.py	Tue Oct 20 12:25:09 2015 +0200
+++ b/mercurial/wireproto.py	Tue Oct 20 12:28:42 2015 +0200
@@ -585,7 +585,7 @@
             caps.append('stream')
         # otherwise, add 'streamreqs' detailing our local revlog format
         else:
-            caps.append('streamreqs=%s' % ','.join(requiredformats))
+            caps.append('streamreqs=%s' % ','.join(sorted(requiredformats)))
     if repo.ui.configbool('experimental', 'bundle2-advertise', True):
         capsblob = bundle2.encodecaps(bundle2.getrepocaps(repo))
         caps.append('bundle2=' + urllib.quote(capsblob))