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

login
register
mail settings
Submitter phabricator
Date June 8, 2018, 2:49 p.m.
Message ID <differential-rev-PHID-DREV-fzredc6sgcajvvw5mfpx-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/32028/
State Superseded
Headers show

Comments

phabricator - June 8, 2018, 2:49 p.m.
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




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

Patch

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: