This text is a work in progress—highly subject to change—and may not accurately describe any released version of the ApacheTM Subversion® software. Bookmarking or otherwise referring others to this page is probably not such a smart idea. Please visit http://www.svnbook.com/ for stable versions of this book.
post-commit — Notification of a successful commit.
post-commit
REPOS-PATH
REVISION
TXN-NAME
The post-commit hook is run after the transaction is committed and a new revision is created. Most people use this hook to send out descriptive emails about the commit or to notify some other tool (such as an issue tracker) that a commit has happened. Some configurations also use this hook to trigger backup processes.
If the post-commit hook returns a
nonzero exit status, the commit will
not be aborted since it has already
completed. However, anything that the hook printed
to stderr
will be marshalled back to the
client, making it easier to diagnose hook failures.
The command-line arguments passed to the hook program, in order, are:
Repository path
Revision number created by the commit
Name of the transaction that has become the revision triggering the post-commit hook.
Commit notification; tool integration