diff mercurial/debugcommands.py @ 45818:b7b8a1538161

httpservice: move sys.exit() out of serve_forever() This is a simple refactoring to show the callers of the method, so it's easier to reason about the impact of removing the `sys.exit()` calls in subsequent patches. Differential Revision: https://phab.mercurial-scm.org/D9270
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 03 Nov 2020 20:18:26 -0800
parents 0428978bca22
children d6279c43fc60
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Mon Jun 22 22:47:43 2020 -0700
+++ b/mercurial/debugcommands.py	Tue Nov 03 20:18:26 2020 -0800
@@ -3376,6 +3376,7 @@
 
     s = wireprotoserver.sshserver(ui, repo, logfh=logfh)
     s.serve_forever()
+    sys.exit(0)
 
 
 @command(b'debugsetparents', [], _(b'REV1 [REV2]'))