[ANN] hg-config
Steve Borho
steve at borho.org
Mon Sep 10 23:31:12 CDT 2007
Hello,
I've created an extension that provides a framework for generating small
GUI apps for editing a user's various Mercurial config files.
For starters, the extension provides two apps:
hg username
hg webconf
hg username pops up a dialog that allows the user to specify a username
and then chose to store it either in their user-global ~/.hgrc ||
Mercurial.ini or in their repo-local .hg/hgrc. It also provides a hook
so that you can add "[hooks] precommit.username = hgconf.uname.hook" in
the system-wide hgrc. The hook will automatically spawn the username
dialog if no username is configured when a user tries to commit.
hg webconf allows the user to configure the [web] section of a
repository's .hg/hgrc file.
It uses cfgparser to modify the INI files without losing comments or
other context. It uses PyQt4 as it's GUI toolkit, similar to Qct. The
initial intent is to roll this into the "Batteries Included" Windows
installer, so there's no setup.py for it yet.
Cheers.
Oh yeah, you can find it here: http://hg.borho.org
--
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