[darcs-users] determining what darcs apply did [was: sending notices when a repo changes]

Ralph Corderoy ralph at inputplus.co.uk
Sun Mar 6 17:41:34 UTC 2005


Hi Thomas,

> On Sunday 06 March 2005 11:19, Ralph Corderoy wrote:
> > I'd favour possibly large data going into a temporary file with the
> > filename in an environment variable.
> 
> Thats a bad idea; don't assume you get to always write a file in the
> environment you are running in.

Ah, OK.

> > How do other SCMs handle this?
> 
> http://www.gnu.org/software/gnu-arch/tutorial/using-hooks.html

Is all arch documentation that useless?  ;-)

CVS gives some data over stdin which is unbounded in size.  On some OS
/dev/fd/* exist so several streams of data could be available to the
hook-script at one if necessary.

> Notice that the strategy chosen there; one script which is called by
> all hooks with a different argument. Really does not help to make
> things easier.

darcs shouldn't insist on such a policy.  If one script to do one task
is preferable then that should be possible.  CVS's mechanism, although
crufty in some ways, does allow for multiple hook-scripts to be invoked
with parameters of their choosing using %-escapes.

Cheers,


Ralph.





More information about the darcs-users mailing list