Hooks for Darcs
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cia
sendmail
synchook
AUTHORS
LICENSE
Makefile
README
config.py
darcs-hooks.py

README

Hooks for Darcs

What’s darcs-hooks?

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.

Why is it good?

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.

How does it work?

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.

Download

git clone https://github.com/vmiklos/darcs-hooks.git

should be able to download the code.

Enjoy!

Back to my projects page.