bghooks extension (first shot at background hooks)
Dennis Schoen
ds at 1d10t.de
Mon Sep 22 07:08:55 CDT 2008
Hi all,
last week I needed to add a faily long running process as a
changegroup hook
to one of our repositories. In middle of writing a python wrapper that
forks
and dispatches the process I realized that most of it could be handled
by a
generic background hook extension for mercurial.
So here's a first draft of "bghooks". This has alpha-works-for-me(tm)
status,
so the usual precautions apply. ;-)
Enable the extension as usual:
# [extensions]
# hgext.bghooks =
configure your background processes like normal hooks:
# [bghooks]
# commit.update_test_suite = update_test_suite.sh
# changegroup.update_remote = update_remote.sh
All comments, critics appreciated. You can also find me on IRC as
"roccoblues".
cheers
dennis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bhooks.patch
Type: application/octet-stream
Size: 3384 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20080922/06559d31/attachment.obj
-------------- next part --------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20080922/06559d31/attachment.pgp
More information about the Mercurial-devel
mailing list