Mercurial > hg
diff mercurial/wireproto.py @ 26911:d7e5e4da8394
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.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Tue, 20 Oct 2015 12:28:42 +0200 |
parents | e5a1df51bb25 |
children | 3abee2ba27af |
line wrap: on
line diff
--- 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))