[PATCH V2] chgserver: set sys.argv to improve compatibility

Yuya Nishihara yuya at tcha.org
Wed May 4 23:35:25 EDT 2016


On Wed, 4 May 2016 22:31:54 +0100, Jun Wu wrote:
> This is a resend since Pierre-Yves replied it was pushed but seems it's not
> there. And we recently found revlog uses sys.argv as well.
> 
> That said, I noticed the code is better living in commandserver.py's
> runcommand just after sending this. I will send a V3 moving it to
> commandserver.py if the idea is okay. Sorry for the inconvenience.

No. commandserver tries not to modify the globals, and it isn't even forked.
chgserver does such ugly things, but I want to eliminate them later.


More information about the Mercurial-devel mailing list