[ANN] hg-config
Steve Borho
steve at borho.org
Tue Sep 11 09:43:13 CDT 2007
On Tue, 2007-09-11 at 12:40 +0200, Rafael Villar Burke wrote:
> Steve Borho wrote:
> > Hello,
> >
> > I've created an extension that provides a framework for generating small
> > GUI apps for editing a user's various Mercurial config files.
> >
> Very useful!. Can it show a command line interface too?.
> > For starters, the extension provides two apps:
> >
> > 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
> ...
>
> the extension would allow for example:
>
> hg config paths.main http://http://hg.borho.org
>
> and you get to modify/add that path in [paths]\nmain=http://hg.borho.org
Its certainly feasible to add a 'config' command to the extension that
allows you to set arbitrary values in your ini file via the command
line. Something along the line of:
hg config [--local|-l] section.name value
I can see that being very useful. However there's probably not much
point in fitting the dialog spawning commands into that scheme since,
for instance, the webconf dialog configures about 10 fields at once.
I plan to add more dialogs over time, and near the top of that list is a
dialog for setting paths.
--
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