logo       
Google Custom Search
    AddThis Social Bookmark Button

[PATCH] run a hook for each patch on apply: msg#00269

Subject: [PATCH] run a hook for each patch on apply
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.

Attachment: hook-onapply
Description: Text document

Attachment: 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 ...
<Prev in Thread] Current Thread [Next in Thread>