mercurial/commandserver.py
changeset 18359 4b09e6f7d7de
parent 18174 56ef99fbd6f2
child 20082 b04cc8651a63
equal deleted inserted replaced
18358:93293813d753 18359:4b09e6f7d7de
   218 
   218 
   219     capabilities = {'runcommand'  : runcommand,
   219     capabilities = {'runcommand'  : runcommand,
   220                     'getencoding' : getencoding}
   220                     'getencoding' : getencoding}
   221 
   221 
   222     def serve(self):
   222     def serve(self):
   223         hellomsg = 'capabilities: ' + ' '.join(self.capabilities.keys())
   223         hellomsg = 'capabilities: ' + ' '.join(sorted(self.capabilities))
   224         hellomsg += '\n'
   224         hellomsg += '\n'
   225         hellomsg += 'encoding: ' + encoding.encoding
   225         hellomsg += 'encoding: ' + encoding.encoding
   226 
   226 
   227         # write the hello msg in -one- chunk
   227         # write the hello msg in -one- chunk
   228         self.cout.write(hellomsg)
   228         self.cout.write(hellomsg)