[darcs-users] determining what darcs apply did [was: sending notices when a repo changes]
indigo at bitglue.com
Sun Mar 6 14:51:11 UTC 2005
On Sun, Mar 06, 2005 at 12:23:42PM +0100, Thomas Zander wrote:
> 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.
> > How do other SCMs handle this?
> 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
> The env vars idea is used there, and in cvs. Proven idea; please go for
> that :)
> Thomas Zander
I think though that it's very important that the command that triggered
the hook be a parameter to the hook. Thus, one script can be written to
handle the actions for two commands that are mostly identical but differ
More information about the darcs-users