serve: do not daemonize by default by --print-url
authorYuya Nishihara <yuya@tcha.org>
Fri, 08 Jun 2018 23:32:33 +0900
changeset 38282 1a05e205832a
parent 38281 1d6066336d7b
child 38283 0e0d03d09ecd
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
mercurial/commands.py
--- a/mercurial/commands.py	Thu Jun 07 16:19:18 2018 -0700
+++ b/mercurial/commands.py	Fri Jun 08 23:32:33 2018 +0900
@@ -4854,8 +4854,6 @@
         raise error.Abort(_("cannot use --stdio with --cmdserver"))
     if opts["print_url"] and ui.verbose:
         raise error.Abort(_("cannot use --print-url with --verbose"))
-    if opts["print_url"]:
-        opts['daemon'] = True
 
     if opts["stdio"]:
         if repo is None: