Commit c6f4d570 authored by Martin von Zweigbergk's avatar Martin von Zweigbergk

serve: simply return instead of calling sys.exit() in `hg serve --stdio`

The shouldn't be a reason to call `sys.exit()` instead of letting the
code return normally. I've remove the call in both `hg serve` and `hg
debugserve`.

Differential Revision: https://phab.mercurial-scm.org/D9271
parent b7b8a1538161
......@@ -6348,7 +6348,7 @@ def serve(ui, repo, **opts):
)
s = wireprotoserver.sshserver(ui, repo)
s.serve_forever()
sys.exit(0)
return
service = server.createservice(ui, repo, opts)
return server.runservice(opts, initfn=service.init, runfn=service.run)
......
......@@ -3376,7 +3376,6 @@ def debugserve(ui, repo, **opts):
s = wireprotoserver.sshserver(ui, repo, logfh=logfh)
s.serve_forever()
sys.exit(0)
@command(b'debugsetparents', [], _(b'REV1 [REV2]'))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment