keyword expansion filewise
Bryan O'Sullivan
bos at serpentine.com
Tue Apr 11 20:51:00 UTC 2006
On Tue, 2006-04-11 at 14:47 +0200, Christian Ebert wrote:
> Also, as of yet, I was too lazy to fiddle with hg's internals and
> IMHO it wouldn't make much sense to read hg's output via os.popen
> or using the subprocess module. It would be better to get this
> info on mercurial's python level.
We've been kicking around the ability to specify hooks as Python objects
to be called, instead of external programs to run.
For example, this is how I'd see it working:
[extensions]
hgext.myhook =
[hooks]
pretxncommit.myhook = python:hgext.myhook.myfunction
This would import the hgext.myhook module as an extension, and then do a
call to myfunction in the hgext.myhook module when the prextncommit hook
triggers.
<b
More information about the Mercurial
mailing list