Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 0b38be552745286620faf2138b9468d0 > files > 100

subversion-doc-1.4.6-5.1mdv2008.1.x86_64.rpm

<?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>start-commit</title><link rel="stylesheet" href="styles.css" type="text/css" /><meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /><link rel="start" href="index.html" title="Version Control with Subversion" /><link rel="up" href="svn.ref.reposhooks.html" title="Repository Hooks" /><link rel="prev" href="svn.ref.reposhooks.html" title="Repository Hooks" /><link rel="next" href="svn.ref.reposhooks.pre-commit.html" title="pre-commit" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">start-commit</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="svn.ref.reposhooks.html">Prev</a> </td><th width="60%" align="center">Repository Hooks</th><td width="20%" align="right"> <a accesskey="n" href="svn.ref.reposhooks.pre-commit.html">Next</a></td></tr></table><hr /></div><div class="refentry" lang="en" xml:lang="en"><a id="svn.ref.reposhooks.start-commit"></a><div class="titlepage"></div><a id="id428218" class="indexterm"></a><div class="refnamediv"><h2>Name</h2><p>start-commit — Notification of the beginning of a commit.</p></div><div class="refsect1" lang="en" xml:lang="en"><a id="id428245"></a><h2>Description</h2><p>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.</p><p>If the start-commit hook program returns a non-zero exit
          value, the commit is stopped before the commit transaction
          is even created, and anything printed to stderr is
          marshalled back to the client.</p></div><div class="refsect1" lang="en" xml:lang="en"><a id="id428261"></a><h2>Input Parameter(s)</h2><p>The command-line arguments passed to the hook program,
          in order, are:</p><div class="orderedlist"><ol type="1"><li><p>repository path</p></li><li><p>authenticated username attempting the commit</p></li><li><p>(new in Subversion 1.5) colon separated list of
              capabilities that a client psses to the server,
              including <code class="literal">depth</code>,
              <code class="literal">mergeinfo</code>, and
              <code class="literal">log-revprops</code>.</p></li></ol></div></div><div class="refsect1" lang="en" xml:lang="en"><a id="id428319"></a><h2>Common Uses</h2><p>access control (e.g. temporarily lock out commits for
          some reason)</p><p>a means to allow access only from clients that have
          certain capabilities.</p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="svn.ref.reposhooks.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="svn.ref.reposhooks.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="svn.ref.reposhooks.pre-commit.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Repository Hooks </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> pre-commit</td></tr></table></div></body></html>