mercurial/commandserver.py
branchstable
changeset 14719 c19de7f32961
parent 14707 964a72038bb0
child 14728 350dcd481410
--- 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():