# HG changeset patch # User Yuya Nishihara # Date 2014-06-28 04:02:44 # Node ID 6b0275e5f27696226595c114c9bf034519aaad45 # Parent 212955411633acbe7ace88f22565ce17d85ec8c5 serve: make sure to print "listening at" message immediately If stdout is piped, status message won't be flushed until client connects to the server and access log is written to stdout. It seems bad idea to queue start-up banner of server process. diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -5322,6 +5322,7 @@ class httpservice(object): write = self.ui.write write(_('listening at http://%s%s/%s (bound to %s:%d)\n') % (fqaddr, port, prefix, bindaddr, self.httpd.port)) + self.ui.flush() # avoid buffering of status message def run(self): self.httpd.serve_forever()