Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 38282:1a05e205832a
serve: do not daemonize by default by --print-url
Per discussion in D3649, -d/--daemon should be explicitly specified to avoid
surprising result.
Differential Revision: https://phab.mercurial-scm.org/D3703
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 08 Jun 2018 23:32:33 +0900 |
parents | 2ec44160165d |
children | 79dcaad9d145 |
comparison
equal
deleted
inserted
replaced
38281:1d6066336d7b | 38282:1a05e205832a |
---|---|
4852 opts = pycompat.byteskwargs(opts) | 4852 opts = pycompat.byteskwargs(opts) |
4853 if opts["stdio"] and opts["cmdserver"]: | 4853 if opts["stdio"] and opts["cmdserver"]: |
4854 raise error.Abort(_("cannot use --stdio with --cmdserver")) | 4854 raise error.Abort(_("cannot use --stdio with --cmdserver")) |
4855 if opts["print_url"] and ui.verbose: | 4855 if opts["print_url"] and ui.verbose: |
4856 raise error.Abort(_("cannot use --print-url with --verbose")) | 4856 raise error.Abort(_("cannot use --print-url with --verbose")) |
4857 if opts["print_url"]: | |
4858 opts['daemon'] = True | |
4859 | 4857 |
4860 if opts["stdio"]: | 4858 if opts["stdio"]: |
4861 if repo is None: | 4859 if repo is None: |
4862 raise error.RepoError(_("there is no Mercurial repository here" | 4860 raise error.RepoError(_("there is no Mercurial repository here" |
4863 " (.hg not found)")) | 4861 " (.hg not found)")) |