[PATCH] commands: possibly start a web browser during `hg serve` (BC)

Sean Farley sean at farley.io
Tue Jul 19 14:16:03 EDT 2016


Jun Wu <quark at fb.com> writes:

> Excerpts from Gregory Szorc's message of 2016-07-17 10:27:58 -0700:
>> It occurred to me while writing this that "auto launch a browser UI" is
>> applicable to a number of commands, much like having command output go to a
>> pager is. I could envision various commands accepting a "--browser"
>> argument that would open a browser to show results instead of sending it to
>> the terminal. I think the built-in web server needs a lot of love before we
>> could seriously consider this, however.
>
> Since we have "ui.interface". How about adding suboptions to it? For example:
>
>   ui.interface.serve=browser:firefox
>   ui.interface.diff=browser:luakit

I like this idea the most. One day, I hope to drag and drop commits to
reorder them, along with other nice, modern ui via a web browser.


More information about the Mercurial-devel mailing list