[PATCH] chgserver: do not print traceback on SystemExit

Jun Wu quark at fb.com
Sun Apr 10 08:29:58 EDT 2016


On 04/10/2016 12:36 PM, Yuya Nishihara wrote:
> Can you show the stacktrace? I'm interested in which command can execute
> that ugly sys.exit(). For "runcommand", SystemExit should be caught at
> dispatch.

This was a little hack at facebook that suppresses the error message otherwise
would be printed by dispatch.py:

https://bitbucket.org/facebook/hg-experimental/src/a5aaa/errorredirect.py#errorredirect.py-48

> If it is a common problem, this line should be copied to commandserver.py.

Good point. I will do that in V2.


More information about the Mercurial-devel mailing list