diff -r 58e7ee23ddbd -r b7b8a1538161 mercurial/commands.py --- a/mercurial/commands.py Mon Jun 22 22:47:43 2020 -0700 +++ b/mercurial/commands.py Tue Nov 03 20:18:26 2020 -0800 @@ -6348,6 +6348,7 @@ ) s = wireprotoserver.sshserver(ui, repo) s.serve_forever() + sys.exit(0) service = server.createservice(ui, repo, opts) return server.runservice(opts, initfn=service.init, runfn=service.run)