apply posthook python /path/to/darcs-hooks/darcs-hooks.py apply run-posthook
darcs-hooks is a framework for darcs hooks. you can write plugins for it, configure them and each plugin will be invoked once for each pushed patch.
As I no longer use darcs these days, it's kind of unmaintained but as far as I know it still works properly with the latest stable version of darcs.
The posthook feature of darcs allows you to run one command once when you push something to the repo. darcs-hooks allows you to run several commands for each pushed patch, no matter if you pushed one or several ones.
Currently darcs-hooks contains a CIA notifier plugin, a mail sender plugin and a plugin for Frugalware's syncpkgd.
All you need is to append the following two lines to your _darcs/prefs/defaults file inside your repository:
apply posthook python /path/to/darcs-hooks/darcs-hooks.py apply run-posthook
See the /config.py file to enable/disable plugins. See the /foo/config.py files to fine-tune a given plugin.
darcs get http://vmiklos.hu/project/darcs-hooks
should be able to download the code.
Enjoy!
Back to my projects page.
Apache Server at vmiklos.hu Port 80Name Last modified Size Description
Parent Directory -
AUTHORS 09-Apr-2008 16:14 34
Changelog 16-Apr-2008 11:08 2.5K
LICENSE 07-Jun-2007 19:59 18K
Makefile 09-Apr-2008 16:29 1.8K
README 16-Apr-2008 11:08 1.3K
cia/ 09-Apr-2008 16:17 -
config.py 06-Aug-2007 15:13 88
darcs-hooks.py 06-Aug-2007 15:44 2.1K
sendmail/ 09-Apr-2008 16:17 -
synchook/ 09-Apr-2008 16:19 -