[darcs-devel] darcs patch: Added prehooks

Jason Dagit dagit at codersbase.com
Sat May 5 03:12:41 PDT 2007


This adds the sometimes requested feature of prehooks.  It does the simplest 
thing possible.  That is, I copied the code for posthooks and changed post to 
pre and also made sure it runs before darcs runs.

I updated the manual a tiny bit and added a very simple test (copied 
posthook.sh).

Some possible improvements include: 
  * Refactoring pre/post-hook code  
  * Add more tests for both pre/post-hooks
  * Possibly add more details to the manual
  * Possibly propagate the hooks with darcs get

I think this is ready to go and it seems to behave the way I expected at least
for the couple commands I tried it with.  I encourage others to experiment.

Sat May  5 03:02:47 PDT 2007  Jason Dagit <dagit at codersbase.com>
  * Added prehooks

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-darcs-patch
Size: 47396 bytes
Desc: A darcs patch for your repository!
Url : http://lists.osuosl.org/pipermail/darcs-devel/attachments/20070505/95f761e1/attachment-0001.bin


More information about the darcs-devel mailing list