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

Dave Roberts ldave at droberts.com
Sat Mar 5 03:30:37 UTC 2005

On Fri, 2005-03-04 at 14:52 +0000, Jamie Webb wrote:
> I'd suggest that the script should receive the darcs command line and
> a list of affected patches, i.e.

You might also want to define a whole bunch of darcs environment
variables that get set prior to executing the script, sort of like what
CGI scripts do. It's kludgy but it works and that way you don't have to
try to guess what somebody will want and try to put it all into the
command line. The other option is to define a command string that's
stores in the repo that has $REPO and $PATCH sorts of pseudo variables
that get expanded by darcs (not the shell and not environment, which may
help you on cross-platform stuff). That way a user can choose what
parameters he wants passed to his own scripts and you don't end up with
terribly long command lines.

Dave Roberts <ldave at droberts.com>

More information about the darcs-users mailing list