mercurial/commandserver.py
changeset 34486 a57c938e7ac8
parent 34373 76b334b9f45c
child 35245 414114a7c18f
equal deleted inserted replaced
34485:37b7581e5737 34486:a57c938e7ac8
   270                 # looking at the servers capabilities
   270                 # looking at the servers capabilities
   271                 raise error.Abort(_('unknown command %s') % cmd)
   271                 raise error.Abort(_('unknown command %s') % cmd)
   272 
   272 
   273         return cmd != ''
   273         return cmd != ''
   274 
   274 
   275     capabilities = {'runcommand'  : runcommand,
   275     capabilities = {'runcommand': runcommand,
   276                     'getencoding' : getencoding}
   276                     'getencoding': getencoding}
   277 
   277 
   278     def serve(self):
   278     def serve(self):
   279         hellomsg = 'capabilities: ' + ' '.join(sorted(self.capabilities))
   279         hellomsg = 'capabilities: ' + ' '.join(sorted(self.capabilities))
   280         hellomsg += '\n'
   280         hellomsg += '\n'
   281         hellomsg += 'encoding: ' + encoding.encoding
   281         hellomsg += 'encoding: ' + encoding.encoding