[PATCH 1 of 5 RFC] serve: add --cmdserver option to communicate with hg over a pipe

Matt Mackall mpm at selenic.com
Fri Jun 3 16:16:14 CDT 2011


On Fri, 2011-06-03 at 23:04 +0300, Idan Kamara wrote:
> # HG changeset patch
> # User Idan Kamara <idankk86 at gmail.com>
> # Date 1307111261 -10800
> # Node ID 5b9901ab0f4c60450ecd5c112fd937493a043667
> # Parent  a67e866f46f9919a963afb4e4f1bb4a2c56a3c42
> serve: add --cmdserver option to communicate with hg over a pipe

> +            sys.stderr = channeledoutput(sys.stderr, sys.stdout, 'e')
> +            sys.stdout = channeledoutput(sys.stdout, sys.stdout, 'o')
> +            self.fin = sys.stdin
> +            self.fout = sys.stdout

What happens when a command like 'hg import -' wants to consume all of
stdin?

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list