D3650: serve: add an option to open in the default browser

2018-06-15 Thread nspanti-logilab (Nicola Spanti)
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

D3649: serve: add option print-url

2018-06-04 Thread nspanti-logilab (Nicola Spanti)
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

D3649: serve: add option print-url

2018-06-01 Thread nspanti-logilab (Nicola Spanti)
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

D3650: serve: add an option to open in the default browser

2018-05-24 Thread nspanti-logilab (Nicola Spanti)
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

D3649: serve: add option print-url

2018-05-24 Thread nspanti-logilab (Nicola Spanti)
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