# HG changeset patch # User Pierre-Yves David # Date 2015-10-20 10:28:42 # Node ID d7e5e4da8394fa70488aa1ce7a199e0bc0401705 # Parent 0856f1bfbe1e4ca3dd8930cbbba0ce4eb578b035 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. diff --git a/mercurial/wireproto.py b/mercurial/wireproto.py --- a/mercurial/wireproto.py +++ b/mercurial/wireproto.py @@ -585,7 +585,7 @@ def _capabilities(repo, proto): 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))