equal
deleted
inserted
replaced
5246 raise util.Abort(_("cannot use --stdio with --cmdserver")) |
5246 raise util.Abort(_("cannot use --stdio with --cmdserver")) |
5247 |
5247 |
5248 if opts["stdio"]: |
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 s = sshserver.sshserver(ui, repo) |
5252 s = sshserver.sshserver(ui, repo) |
5253 s.serve_forever() |
5253 s.serve_forever() |
5254 |
5254 |
5255 if opts["cmdserver"]: |
5255 if opts["cmdserver"]: |
5256 s = commandserver.server(ui, repo, opts["cmdserver"]) |
5256 s = commandserver.server(ui, repo, opts["cmdserver"]) |