This documentation was written to describe the 1.7.x series of Apache™ Subversion®. If you are running a different version of Subversion, please visit the svnbook index and choose the version of this documentation appropriate for your your version of Subversion.
Name
pre-revprop-change — Notification of a revision property change attempt.
Description
The pre-revprop-change
hook is run
immediately prior to the modification of a revision property
when performed outside the scope of a normal commit. Unlike
the other hooks, the default state of this one is to deny
the proposed action. The hook must actually exist and
return a zero exit value before a revision property
modification can happen.
If the pre-revprop-change
hook
doesn't exist, isn't executable, or returns a nonzero exit
value, no change to the property will be made, 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
-
Revision whose property is about to be modified
-
Authenticated username attempting the property change
-
Name of the property changed
-
Change description:
A
(added),D
(deleted), orM
(modified)
Additionally, Subversion passes the intended new value of the property to the hook program via standard input.