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

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Thu Nov 5 01:31:07 UTC 2020


Closed by commit rHGd6279c43fc60: serve: simply return instead of calling sys.exit() in `hg serve --stdio` (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D9271?vs=23414&id=23419

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D9271/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D9271

AFFECTED FILES
  mercurial/commands.py
  mercurial/debugcommands.py

CHANGE DETAILS

diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py
--- a/mercurial/debugcommands.py
+++ b/mercurial/debugcommands.py
@@ -3376,7 +3376,6 @@
 
     s = wireprotoserver.sshserver(ui, repo, logfh=logfh)
     s.serve_forever()
-    sys.exit(0)
 
 
 @command(b'debugsetparents', [], _(b'REV1 [REV2]'))
diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -6348,7 +6348,7 @@
             )
         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)



To: martinvonz, #hg-reviewers
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20201105/81843415/attachment-0002.html>


More information about the Mercurial-patches mailing list