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.

Subversion Repository Hook Reference
Prev Part II. Subversion Command Reference Next

Subversion Repository Hook Reference


Subversion repositories provide a number of event hooks which are essentially opportunities for administrators to extend Subversion's functionality at key moments of key operations. Repository hooks are implemented as programs executed by Subversion itself at those key moments—before and after a commit, before and after a user locks a file, and so on.

For each hook it provides, Subversion will attempt to execute the program of that hook's name which is found in the hooks/ subdirectory of the repository's on-disk directory structure. For example, on a Unix system, the start-commit hook script would be installed at REPOS_PATH/hooks/start-commit, where it could be a binary executable program, a shell script, a Python program, etc. On a Windows system, the program would be installed in the same location, but would be named START-COMMIT.EXE or START-COMMIT.BAT instead of simply start-commit.

This reference guide describes the various hooks which Subversion offers to administrators, detailing when the hook is invoked, its input parameters, and how its behavior affects the Subversion workflow.

Table of Contents

start-commit
pre-commit
post-commit
pre-revprop-change
post-revprop-change
pre-lock
post-lock
pre-unlock
post-unlock

Prev Up Next
svnmucc Home start-commit

AltStyle によって変換されたページ (->オリジナル) /