Version Control with Subversion, 2nd Edition
by C. Michael Pilato, Ben Collins-Sussman, Brian W. Fitzpatrick
Name
pre-lock — Notification of a path lock attempt.
Description
The pre-lock hook
runs whenever someone attempts to lock a path. It can be used to
prevent locks altogether or to create a more complex policy specifying
exactly which users are allowed to lock particular paths. If the hook
notices a preexisting lock, it can also decide whether a user is
allowed to “steal” the existing lock.
If the pre-lock hook program
returns a nonzero exit value, the lock action is aborted and anything
printed to stderr is marshaled
back to the client.
Input parameter(s)
The command-line arguments passed to the hook program, in order, are:
Repository path
Versioned path that is to be locked
Authenticated username of the person attempting the lock
Common uses
Access control.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access