Subversion hook scripts are stored in the
of a repository. To learn how it works it's good to create a local
repository to play with:
svnadmin create /tmp/testrepo
All hooks are disabled by default, if you look inside
/tmp/testrepo/hooks you will see a bunch of files with a
.tmpl extension, for example
When a hook script is enabled, it should not have such extension, and it
should be executable.
From a client, you cannot access to these hook scripts, or check that
they exist. You need shell access on the system hosting the repository, in
this case the
You can play with hook scripts using this local repository, its URL is
file:///tmp/testrepo, for example:
$ svn co file:///tmp/testrepo /tmp/checkout
Checked out revision 0.
$ cd /tmp/checkout/
$ date > date.txt
$ svn add date.txt
$ svn ci -m 'first commit'
Transmitting file data .
Committed revision 1.