D3703: serve: do not daemonize by default by --print-url

yuja (Yuya Nishihara) phabricator at mercurial-scm.org
Fri Jun 8 14:49:56 UTC 2018


yuja created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  Per discussion in https://phab.mercurial-scm.org/D3649, -d/--daemon should be explicitly specified to avoid
  surprising result.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3703

AFFECTED FILES
  mercurial/commands.py

CHANGE DETAILS

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -4830,8 +4830,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:



To: yuja, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list