# HG changeset patch # User Yuya Nishihara # Date 2018-06-08 14:32:33 # Node ID 1a05e205832a929374c010b2dc6a1c65a60186a3 # Parent 1d6066336d7bfcc7e070357dd30b75271933e419 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 diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -4854,8 +4854,6 @@ def serve(ui, repo, **opts): 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: