It is inspired by a similar functionality in pydoc. -g/--graphical may not be adequate, the only other idea that I have is -w/--window.
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 and give the result of --print-url to a non web browser application (but I imagine that there is a way to duplicate stdout to multiple programs). These are the advantages of this patch that I see over --print-url of D3649. It is better for convenience and require less knowledge for the user, but it is not a need. D3649 was precisely suggested to me because it can fulfill the functionality of the current patch and is more versatile.
(Resend because I forgot to remove the "someone wrote:" line again, sorry.)
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).
For laziness, we can add it to [alias]. I'm not a fan of adding lots of
one-off options since that's the source of man page bloat.
How about document the xdg-open example in hg help serve -v?
There seems to have been no activities on this Diff for the past 3 Months.
By policy, we are automatically moving it out of the need-review state.
Please, move it back to need-review without hesitation if this diff should still be discussed.