Mercurial > public > mercurial-scm > hg
comparison mercurial/debugcommands.py @ 45819:d6279c43fc60
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
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 03 Nov 2020 20:20:49 -0800 |
parents | b7b8a1538161 |
children | d7a508a75d72 |
comparison
equal
deleted
inserted
replaced
45818:b7b8a1538161 | 45819:d6279c43fc60 |
---|---|
3374 elif opts[b'logiofile']: | 3374 elif opts[b'logiofile']: |
3375 logfh = open(opts[b'logiofile'], b'ab', 0) | 3375 logfh = open(opts[b'logiofile'], b'ab', 0) |
3376 | 3376 |
3377 s = wireprotoserver.sshserver(ui, repo, logfh=logfh) | 3377 s = wireprotoserver.sshserver(ui, repo, logfh=logfh) |
3378 s.serve_forever() | 3378 s.serve_forever() |
3379 sys.exit(0) | |
3380 | 3379 |
3381 | 3380 |
3382 @command(b'debugsetparents', [], _(b'REV1 [REV2]')) | 3381 @command(b'debugsetparents', [], _(b'REV1 [REV2]')) |
3383 def debugsetparents(ui, repo, rev1, rev2=None): | 3382 def debugsetparents(ui, repo, rev1, rev2=None): |
3384 """manually set the parents of the current working directory | 3383 """manually set the parents of the current working directory |