nspanti-logilab added a comment.
For laziness, this patch could be also useful. It is also better for text
shell beginners, because they may not know that they can combine commands like
that (even if it is basic). Moreover, you can still use `hg serve` in
foreground or use it in background
nspanti-logilab added a comment.
In https://phab.mercurial-scm.org/D3649#57835, @yuja wrote:
> 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
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGaea29e81753a: serve: add option print-url (authored by
nspanti-logilab, committed by ).
CHANGED PRIOR TO COMMIT
https://phab.mercurial-scm.org/D3649?vs=8880=8945#toc
REPOSITORY
rHG Mercurial
nspanti-logilab created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
It is inspired by a similar functionality in pydoc.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D3650
nspanti-logilab created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
It can be used to open hgweb in a web browser. Example :
xdg-open "`hg serve --print-url`".
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL