Name
start-commit — Notification of the beginning of a commit.
Description
The start-commit hook is run before the commit
transaction is even created. It is typically used to
decide if the user has commit privileges at all.
If the start-commit hook program returns a nonzero exit
value, the commit is stopped before the commit transaction
is even created, and anything printed to stderr is
marshalled back to the client.
Input Parameter(s)
The command-line arguments passed to the hook program,
in order, are:
Repository path
Authenticated username attempting the commit
(New in Subversion 1.5.) Colon-separated list of
capabilities that a client passes to the server,
including depth
,
mergeinfo
, and
log-revprops
.
Common Uses
Access control (e.g., temporarily lock out commits for
some reason).
A means to allow access only from clients that have
certain capabilities.