Mercurial > hg
diff mercurial/wireproto.py @ 37413:33af46d639b4
wireproto: send server capabilities in canonical order
Differential Revision: https://phab.mercurial-scm.org/D3171
author | Joerg Sonnenberger <joerg@bec.de> |
---|---|
date | Fri, 06 Apr 2018 22:22:19 +0200 |
parents | 1d459f61b42a |
children | 2d965bfeb8f6 |
line wrap: on
line diff
--- a/mercurial/wireproto.py Fri Apr 06 22:16:11 2018 +0200 +++ b/mercurial/wireproto.py Fri Apr 06 22:22:19 2018 +0200 @@ -896,7 +896,8 @@ # `_capabilities` instead. @wireprotocommand('capabilities', permission='pull') def capabilities(repo, proto): - return wireprototypes.bytesresponse(' '.join(_capabilities(repo, proto))) + caps = _capabilities(repo, proto) + return wireprototypes.bytesresponse(' '.join(sorted(caps))) @wireprotocommand('changegroup', 'roots', transportpolicy=POLICY_V1_ONLY, permission='pull')