[ANN] hg-config

Steve Borho steve at borho.org
Tue Sep 11 21:07:22 CDT 2007


On Wed, 2007-09-12 at 01:32 +0100, TK Soh wrote:
> On 9/11/07, Rafael Villar Burke <pachi at rvburke.com> wrote:
> > Steve Borho wrote:
> [...]
> > > hg username
> > > hg webconf
> > IMHO, it would be good to converge with git and use something like git
> > config does:
> >
> > 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=

-- 
Steve Borho (steve at borho.org)
http://www.borho.org/~steve/steve.asc
Key fingerprint = 2D08 E7CF B624 624C DE1F  E2E4 B0C2 5292 F2C6 2C8C




More information about the Mercurial mailing list