<?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Subversion Repository Hook Reference</title> <link rel="stylesheet" type="text/css" href="styles.css" /> <meta name="generator" content="DocBook XSL Stylesheets V1.76.1" /> <style type="text/css"> body { background-image: url('images/draft.png'); background-repeat: no-repeat; background-position: top left; /* The following properties make the watermark "fixed" on the page. */ /* I think that's just a bit too distracting for the reader... */ /* background-attachment: fixed; */ /* background-position: center center; */ }</style> <link rel="home" href="index.html" title="Version Control with Subversion [DRAFT]" /> <link rel="up" href="svn.ref.html" title="Part II. Subversion Command Reference" /> <link rel="prev" href="svn.ref.svnmucc.re.html" title="svnmucc" /> <link rel="next" href="svn.ref.reposhooks.start-commit.html" title="start-commit" /> </head> <body> <div xmlns="" id="vcws-version-notice"> <p>This text is a work in progress—highly subject to change—and may not accurately describe any released version of the Apache™ Subversion® software. Bookmarking or otherwise referring others to this page is probably not such a smart idea. Please visit <a href="http://www.svnbook.com/">http://www.svnbook.com/</a> for stable versions of this book.</p> </div> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">Subversion Repository Hook Reference</th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="svn.ref.svnmucc.re.html">Prev</a> </td> <th width="60%" align="center">Part II. Subversion Command Reference</th> <td width="20%" align="right"> <a accesskey="n" href="svn.ref.reposhooks.start-commit.html">Next</a></td> </tr> </table> <hr /> </div> <div class="reference" title="Subversion Repository Hook Reference"> <div class="titlepage"> <div> <div> <h1 class="title"><a id="svn.ref.reposhooks"></a>Subversion Repository Hook Reference</h1> </div> </div> <hr /> </div> <div class="partintro" title="Subversion Repository Hook Reference"> <div></div> <p>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.</p> <p>For each hook it provides, Subversion will attempt to execute the program of that hook's name which is found in the <code class="filename">hooks/</code> subdirectory of the repository's on-disk directory structure. For example, on a Unix system, the start-commit hook script would be installed at <code class="filename"><em class="replaceable"><code>REPOS_PATH</code></em>/hooks/start-commit</code>, 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 <code class="filename">START-COMMIT.EXE</code> or <code class="filename">START-COMMIT.BAT</code> instead of simply <code class="filename">start-commit</code>.</p> <p>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.</p> <div class="toc"> <p> <strong>Table of Contents</strong> </p> <dl> <dt> <span class="refentrytitle"> <a href="svn.ref.reposhooks.start-commit.html">start-commit</a> </span> <span class="refpurpose"></span> </dt> <dt> <span class="refentrytitle"> <a href="svn.ref.reposhooks.pre-commit.html">pre-commit</a> </span> <span class="refpurpose"></span> </dt> <dt> <span class="refentrytitle"> <a href="svn.ref.reposhooks.post-commit.html">post-commit</a> </span> <span class="refpurpose"></span> </dt> <dt> <span class="refentrytitle"> <a href="svn.ref.reposhooks.pre-revprop-change.html">pre-revprop-change</a> </span> <span class="refpurpose"></span> </dt> <dt> <span class="refentrytitle"> <a href="svn.ref.reposhooks.post-revprop-change.html">post-revprop-change</a> </span> <span class="refpurpose"></span> </dt> <dt> <span class="refentrytitle"> <a href="svn.ref.reposhooks.pre-lock.html">pre-lock</a> </span> <span class="refpurpose"></span> </dt> <dt> <span class="refentrytitle"> <a href="svn.ref.reposhooks.post-lock.html">post-lock</a> </span> <span class="refpurpose"></span> </dt> <dt> <span class="refentrytitle"> <a href="svn.ref.reposhooks.pre-unlock.html">pre-unlock</a> </span> <span class="refpurpose"></span> </dt> <dt> <span class="refentrytitle"> <a href="svn.ref.reposhooks.post-unlock.html">post-unlock</a> </span> <span class="refpurpose"></span> </dt> </dl> </div> </div> </div> <div class="navfooter"> <hr /> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"><a accesskey="p" href="svn.ref.svnmucc.re.html">Prev</a> </td> <td width="20%" align="center"> <a accesskey="u" href="svn.ref.html">Up</a> </td> <td width="40%" align="right"> <a accesskey="n" href="svn.ref.reposhooks.start-commit.html">Next</a></td> </tr> <tr> <td width="40%" align="left" valign="top">svnmucc </td> <td width="20%" align="center"> <a accesskey="h" href="index.html">Home</a> </td> <td width="40%" align="right" valign="top"> start-commit</td> </tr> </table> </div> <div xmlns="" id="vcws-footer"> <hr /> <img src="images/cc-by.png" style="float: right;" /> <p>You are reading <em>Version Control with Subversion</em> (for Subversion 1.8), by Ben Collins-Sussman, Brian W. Fitzpatrick, and C. Michael Pilato.</p> <p>This work is licensed under the <a href="http://creativecommons.org/licenses/by/2.0/">Creative Commons Attribution License v2.0</a>.</p> <p>To submit comments, corrections, or other contributions to the text, please visit <a href="http://www.svnbook.com/">http://www.svnbook.com/</a>.</p> </div> </body> </html>