[darcs-users] darcs patch: Test for issue942.

Trent W. Buck trentbuck at gmail.com
Sun Sep 6 11:01:00 UTC 2009

Eric Kow <kowey at darcs.net> writes:

> +## Test for issue942 - remote apply prehook not invoked on darcs push
> +echo 'apply prehook echo prehook fired' >R/_darcs/prefs/defaults
> [...]
> +grep 'prehook fired' log

I would probably use touch and test -e, since they rely on a side effect
of the prehook (a file being created) rather than relying on the
prehook's stdout propagating correctly through push.

I don't care too much, so I'll push this as-is if you can't be bothered
amending that.

More information about the darcs-users mailing list