D3649: serve: add option print-url

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Thu Jun 7 15:20:23 UTC 2018


durin42 added a comment.


  In https://phab.mercurial-scm.org/D3649#57906, @yuja wrote:
  
  > (resend because I forgot to remove the Phab shit, sorry for the noise.)
  >
  > >   > It's surprising that `hg serve --print-url` spawns a daemon process!
  > >   
  > >   If it does not launch a daemon process, the procress caller (`xdg-open`, `midori`, `firefox`, etc.) waits the end of the stream to launch, so it waits that the `hg serve` procress ends!
  >
  > You can just run `hg serve -d --print-url`.
  >
  > The option could be named as `--daemon-print-url` if we needed such big
  >  red switch, but I don't think that makes sense.
  
  
  On reflection I agree, it's a little too magical that --print-url daemonizes. Let's get a follow-up that doesn't do that, especially since -d is so easy to type.
  
  (I'd probably often use --print-url without --daemon, FWIW)

REPOSITORY
  rHG Mercurial

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

To: nspanti-logilab, #hg-reviewers, durin42
Cc: admin, KelvinTot, av6, yuja, mercurial-devel


More information about the Mercurial-devel mailing list