Hint for setting the username

Risto Kankkunen risto.kankkunen at iki.fi
Wed Jul 17 04:50:54 CDT 2013


I'm not member of the list but noticed the following:

On 2013-07-09 20:30:43 GMT, Arne Babenhauserheide wrote:
> I would be all for adding a config command which simply allows querying for config values and starting an
> editor. Maybe with nicely commented example content, if there is no file, yet. IIRC that also was the
> conclusion about the best solution when last discussed this.
>
> hg config --edit # edit the repo config
> hg config --edit --user # edit the user config
> hg config --edit --system # edit the system config
> hg config --files # list the rc files. --list could also mean listing the values.

There is the old hgconfig extension
(http://mercurial.selenic.com/wiki/ConfigExtensionCommandLine which I
have improved on (https://bitbucket.org/kankri/hgconfig), pull request
pending) which does exactly that.

I have been surprised something like this hasn't become more popular
or ended up bundled with Mercurial so far. It's so much easier to tell

  hg config ui.username "Foo Bar <foo.bar at example.com>"

or

  hg config paths.default http://selenic.com/repo/hg-stable

instead of describing how to do the same by editing the files while
taking into account differences between Linux and Windows.


More information about the Mercurial-devel mailing list