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

Idan Kamara idankk86 at gmail.com
Fri Jun 3 17:01:11 CDT 2011


On Sat, Jun 4, 2011 at 12:16 AM, Matt Mackall <mpm at selenic.com> wrote:

> 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?


I'm guessing we'd like the protocol to somehow support 'interactive'
commands such as this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20110604/247c1846/attachment.htm>


More information about the Mercurial-devel mailing list