Show More
@@ -5245,13 +5245,10 b' def serve(ui, repo, **opts):' | |||||
5245 | if opts["stdio"] and opts["cmdserver"]: |
|
5245 | if opts["stdio"] and opts["cmdserver"]: | |
5246 | raise util.Abort(_("cannot use --stdio with --cmdserver")) |
|
5246 | raise util.Abort(_("cannot use --stdio with --cmdserver")) | |
5247 |
|
5247 | |||
5248 | def checkrepo(): |
|
5248 | if opts["stdio"]: | |
5249 | if repo is None: |
|
5249 | if repo is None: | |
5250 | raise error.RepoError(_("there is no Mercurial repository here" |
|
5250 | raise error.RepoError(_("there is no Mercurial repository here" | |
5251 | " (.hg not found)")) |
|
5251 | " (.hg not found)")) | |
5252 |
|
||||
5253 | if opts["stdio"]: |
|
|||
5254 | checkrepo() |
|
|||
5255 | s = sshserver.sshserver(ui, repo) |
|
5252 | s = sshserver.sshserver(ui, repo) | |
5256 | s.serve_forever() |
|
5253 | s.serve_forever() | |
5257 |
|
5254 |
General Comments 0
You need to be logged in to leave comments.
Login now