commandserver: report capabilities sorted
authorMads Kiilerich <mads@kiilerich.com>
Wed, 12 Dec 2012 02:38:14 +0100
changeset 18359 4b09e6f7d7de
parent 18358 93293813d753
child 18360 760c0d67ce5e
commandserver: report capabilities sorted
mercurial/commandserver.py
--- a/mercurial/commandserver.py	Wed Dec 12 02:38:14 2012 +0100
+++ b/mercurial/commandserver.py	Wed Dec 12 02:38:14 2012 +0100
@@ -220,7 +220,7 @@
                     'getencoding' : getencoding}
 
     def serve(self):
-        hellomsg = 'capabilities: ' + ' '.join(self.capabilities.keys())
+        hellomsg = 'capabilities: ' + ' '.join(sorted(self.capabilities))
         hellomsg += '\n'
         hellomsg += 'encoding: ' + encoding.encoding