This patch make darcs running a script for each patch apply by 'apply'
command. If exists, _darcs/prefs/onapply is called with patch hash as first
argument. The goal is clearly to send a mail when a new commit is done on a
main repository. This cannot be done properly with standard posthook as he
don't remain which patch was applied during darcs call.
The _darcs/prefs/onapply script should be executable.
For example:
#!/bin/sh
darcs changes --summary --match "hash $1"
Output:
[nanardon@draco testing]$ /home/users/olivier/projects/darcs/darcs/darcs apply
--mark-conflicts bundle
Tue Jan 24 23:32:09 CET 2006 nanardon@xxxxxxxxxxxxxxxxx
* add
A ./foo
Tue Jan 24 23:32:27 CET 2006 nanardon@xxxxxxxxxxxxxxxxx
* te
M ./foo +1
Finished applying...
Comment on the implementation are welcome, as comment about my haskell code.
hook-onapply
Description: Text document
pgpfHvcTwX3li.pgp
Description: PGP signature
_______________________________________________
darcs-devel mailing list
darcs-devel@xxxxxxxxx
http://www.abridgegame.org/cgi-bin/mailman/listinfo/darcs-devel
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|