[ANN] hg-config
Rafael Villar Burke
pachi at rvburke.com
Wed Sep 12 02:48:45 CDT 2007
Steve Borho wrote:
> On Wed, 2007-09-12 at 01:32 +0100, TK Soh wrote:
>
>>> hg config gui.username
>>> hg config paths.default
>>> ...
>>>
>> +1. This is avoid 'polluting' hg's command space
>>
>
> ok, I can see the benefit of moving all the commands inside 'hg config',
> but gui.username could eventually conflict with a section named gui.
>
> How about this syntax?
>
> hg config [-l|--local] section.key [value]
>
> Sets config option in hgrc:
> [section]
> key=value
>
> Local flag toggles between ~/.hgrc and $root/.hg/hgrc
>
> If the first argument has no period, check if it's a GUI
> request (username, webconf, etc), else abort
>
> The value argument can be omitted to create:
> [section]
> key=
>
That was the intended syntax. Sorry for not being clear and omitting the
values. I was thinking in something like this:
http://www.kernel.org/pub/software/scm/git/docs/git-config.html
It has also options to delete, only add, replace or list entries.
Regards, and thanks for your great work,
Rafael Villar Burke
More information about the Mercurial
mailing list