Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
26910:0856f1bfbe1e | 26911:d7e5e4da8394 |
---|---|
583 # if our local revlogs are just revlogv1, add 'stream' cap | 583 # if our local revlogs are just revlogv1, add 'stream' cap |
584 if not requiredformats - set(('revlogv1',)): | 584 if not requiredformats - set(('revlogv1',)): |
585 caps.append('stream') | 585 caps.append('stream') |
586 # otherwise, add 'streamreqs' detailing our local revlog format | 586 # otherwise, add 'streamreqs' detailing our local revlog format |
587 else: | 587 else: |
588 caps.append('streamreqs=%s' % ','.join(requiredformats)) | 588 caps.append('streamreqs=%s' % ','.join(sorted(requiredformats))) |
589 if repo.ui.configbool('experimental', 'bundle2-advertise', True): | 589 if repo.ui.configbool('experimental', 'bundle2-advertise', True): |
590 capsblob = bundle2.encodecaps(bundle2.getrepocaps(repo)) | 590 capsblob = bundle2.encodecaps(bundle2.getrepocaps(repo)) |
591 caps.append('bundle2=' + urllib.quote(capsblob)) | 591 caps.append('bundle2=' + urllib.quote(capsblob)) |
592 caps.append('unbundle=%s' % ','.join(changegroupmod.bundlepriority)) | 592 caps.append('unbundle=%s' % ','.join(changegroupmod.bundlepriority)) |
593 caps.append( | 593 caps.append( |