--- a/mercurial/commandserver.py Fri Jun 24 01:10:35 2011 +0200
+++ b/mercurial/commandserver.py Wed Jun 22 17:13:04 2011 +0300
@@ -205,8 +205,12 @@
'getencoding' : getencoding}
def serve(self):
- self.cout.write('capabilities: %s' % ' '.join(self.capabilities.keys()))
- self.cout.write('encoding: %s' % encoding.encoding)
+ hellomsg = 'capabilities: ' + ' '.join(self.capabilities.keys())
+ hellomsg += '\n'
+ hellomsg += 'encoding: ' + encoding.encoding
+
+ # write the hello msg in -one- chunk
+ self.cout.write(hellomsg)
try:
while self.serveone():