[PATCH] chgserver: remove outdated comment about setvbuf()

Yuya Nishihara yuya at tcha.org
Fri Mar 11 16:40:16 UTC 2016


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1456575457 -32400
#      Sat Feb 27 21:17:37 2016 +0900
# Node ID dbad88155d14559d94aaf59a21c5371e394039d1
# Parent  88738948f5d27cebe673ceb655c6161c34efda7d
chgserver: remove outdated comment about setvbuf()

I've replaced setvbuf() by fdopen() before merging chg into the core, so
this comment is wrong.

https://bitbucket.org/yuja/chg/commits/5c24e72bc447

diff --git a/hgext/chgserver.py b/hgext/chgserver.py
--- a/hgext/chgserver.py
+++ b/hgext/chgserver.py
@@ -627,8 +627,6 @@ class chgunixservice(commandserver.unixs
             'chgserver', 'idletimeout', self.server.idletimeout)
         self.server.startautoexitthread()
         self._createsymlink()
-        # avoid writing "listening at" message to stdout before attachio
-        # request, which calls setvbuf()
 
     def _inithashstate(self):
         self.baseaddress = self.address


More information about the Mercurial-devel mailing list