equal
deleted
inserted
replaced
894 |
894 |
895 # If you are writing an extension and consider wrapping this function. Wrap |
895 # If you are writing an extension and consider wrapping this function. Wrap |
896 # `_capabilities` instead. |
896 # `_capabilities` instead. |
897 @wireprotocommand('capabilities', permission='pull') |
897 @wireprotocommand('capabilities', permission='pull') |
898 def capabilities(repo, proto): |
898 def capabilities(repo, proto): |
899 return wireprototypes.bytesresponse(' '.join(_capabilities(repo, proto))) |
899 caps = _capabilities(repo, proto) |
|
900 return wireprototypes.bytesresponse(' '.join(sorted(caps))) |
900 |
901 |
901 @wireprotocommand('changegroup', 'roots', transportpolicy=POLICY_V1_ONLY, |
902 @wireprotocommand('changegroup', 'roots', transportpolicy=POLICY_V1_ONLY, |
902 permission='pull') |
903 permission='pull') |
903 def changegroup(repo, proto, roots): |
904 def changegroup(repo, proto, roots): |
904 nodes = decodelist(roots) |
905 nodes = decodelist(roots) |