149 lines
9.1 KiB
HTML
149 lines
9.1 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
|
<title>Subversion: Remove local changes in a repository.</title>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
|
<link href="tabs.css" rel="stylesheet" type="text/css">
|
|
</head><body>
|
|
<!-- Generated by Doxygen 1.5.6 -->
|
|
<div class="navigation" id="top">
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
|
<li><a href="modules.html"><span>Modules</span></a></li>
|
|
<li><a href="annotated.html"><span>Data Structures</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
<li>
|
|
<form action="search.php" method="get">
|
|
<table cellspacing="0" cellpadding="0" border="0">
|
|
<tr>
|
|
<td><label> <u>S</u>earch for </label></td>
|
|
<td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="contents">
|
|
<h1>Remove local changes in a repository.<br>
|
|
<small>
|
|
[<a class="el" href="group__clnt__wc.html">Client working copy management</a>]</small>
|
|
</h1><table border="0" cellpadding="0" cellspacing="0">
|
|
<tr><td></td></tr>
|
|
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structsvn__error__t.html">svn_error_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__Revert.html#gcb44f78571979944837d1ad9967bec5e">svn_client_revert2</a> (const apr_array_header_t *paths, <a class="el" href="svn__types_8h.html#21dd8b080111fa6fb5d59156299f3a2c">svn_depth_t</a> depth, const apr_array_header_t *changelists, <a class="el" href="structsvn__client__ctx__t.html">svn_client_ctx_t</a> *ctx, apr_pool_t *pool)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Restore the pristine version of a working copy <em>paths</em>, effectively undoing any local mods. <a href="#gcb44f78571979944837d1ad9967bec5e"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structsvn__error__t.html">svn_error_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__Revert.html#g3ce77a577680d7cb1e0ae386acbdbd41">svn_client_revert</a> (const apr_array_header_t *paths, <a class="el" href="svn__types_8h.html#22b35baddc4213c688d1bb12feea1024">svn_boolean_t</a> recursive, <a class="el" href="structsvn__client__ctx__t.html">svn_client_ctx_t</a> *ctx, apr_pool_t *pool)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Similar to <a class="el" href="group__Revert.html#gcb44f78571979944837d1ad9967bec5e" title="Restore the pristine version of a working copy paths, effectively undoing any local...">svn_client_revert2()</a>, but with <em>changelists</em> passed as <code>NULL</code>, and <em>depth</em> set according to <em>recurse:</em> if <em>recurse</em> is TRUE, <em>depth</em> is <code>svn_depth_infinity</code>, else if <em>recurse</em> is FALSE, <em>depth</em> is <code>svn_depth_empty</code>. <a href="#g3ce77a577680d7cb1e0ae386acbdbd41"></a><br></td></tr>
|
|
</table>
|
|
<hr><h2>Function Documentation</h2>
|
|
<a class="anchor" name="g3ce77a577680d7cb1e0ae386acbdbd41"></a><!-- doxytag: member="svn_client.h::svn_client_revert" ref="g3ce77a577680d7cb1e0ae386acbdbd41" args="(const apr_array_header_t *paths, svn_boolean_t recursive, svn_client_ctx_t *ctx, apr_pool_t *pool)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="structsvn__error__t.html">svn_error_t</a>* svn_client_revert </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const apr_array_header_t * </td>
|
|
<td class="paramname"> <em>paths</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="svn__types_8h.html#22b35baddc4213c688d1bb12feea1024">svn_boolean_t</a> </td>
|
|
<td class="paramname"> <em>recursive</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="structsvn__client__ctx__t.html">svn_client_ctx_t</a> * </td>
|
|
<td class="paramname"> <em>ctx</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">apr_pool_t * </td>
|
|
<td class="paramname"> <em>pool</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Similar to <a class="el" href="group__Revert.html#gcb44f78571979944837d1ad9967bec5e" title="Restore the pristine version of a working copy paths, effectively undoing any local...">svn_client_revert2()</a>, but with <em>changelists</em> passed as <code>NULL</code>, and <em>depth</em> set according to <em>recurse:</em> if <em>recurse</em> is TRUE, <em>depth</em> is <code>svn_depth_infinity</code>, else if <em>recurse</em> is FALSE, <em>depth</em> is <code>svn_depth_empty</code>.
|
|
<p>
|
|
<dl class="note" compact><dt><b>Note:</b></dt><dd>Most APIs map <em>recurse==FALSE</em> to <em>depth==svn_depth_files</em>; revert is deliberately different.</dd></dl>
|
|
<dl compact><dt><b><a class="el" href="deprecated.html#_deprecated000059">Deprecated:</a></b></dt><dd>Provided for backwards compatibility with the 1.0 API. </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="gcb44f78571979944837d1ad9967bec5e"></a><!-- doxytag: member="svn_client.h::svn_client_revert2" ref="gcb44f78571979944837d1ad9967bec5e" args="(const apr_array_header_t *paths, svn_depth_t depth, const apr_array_header_t *changelists, svn_client_ctx_t *ctx, apr_pool_t *pool)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="structsvn__error__t.html">svn_error_t</a>* svn_client_revert2 </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const apr_array_header_t * </td>
|
|
<td class="paramname"> <em>paths</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="svn__types_8h.html#21dd8b080111fa6fb5d59156299f3a2c">svn_depth_t</a> </td>
|
|
<td class="paramname"> <em>depth</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const apr_array_header_t * </td>
|
|
<td class="paramname"> <em>changelists</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="structsvn__client__ctx__t.html">svn_client_ctx_t</a> * </td>
|
|
<td class="paramname"> <em>ctx</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">apr_pool_t * </td>
|
|
<td class="paramname"> <em>pool</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Restore the pristine version of a working copy <em>paths</em>, effectively undoing any local mods.
|
|
<p>
|
|
For each path in <em>paths</em>, revert it if it is a file. Else if it is a directory, revert according to <em>depth:</em> <p>
|
|
If <em>depth</em> is <code>svn_depth_empty</code>, revert just the properties on the directory; else if <code>svn_depth_files</code>, revert the properties and any files immediately under the directory; else if <code>svn_depth_immediates</code>, revert all of the preceding plus properties on immediate subdirectories; else if <code>svn_depth_infinity</code>, revert path and everything under it fully recursively.<p>
|
|
<em>changelists</em> is an array of <code>const char *</code> changelist names, used as a restrictive filter on items reverted; that is, don't revert any item unless it's a member of one of those changelists. If <em>changelists</em> is empty (or altogether <code>NULL</code>), no changelist filtering occurs.<p>
|
|
If <em>ctx->notify_func2</em> is non-NULL, then for each item reverted, call <em>ctx->notify_func2</em> with <em>ctx->notify_baton2</em> and the path of the reverted item.<p>
|
|
If an item specified for reversion is not under version control, then do not error, just invoke <em>ctx->notify_func2</em> with <em>ctx->notify_baton2</em>, using notification code <code>svn_wc_notify_skip</code>.<p>
|
|
<dl class="since" compact><dt><b>Since:</b></dt><dd>New in 1.5. </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
</div>
|
|
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Oct 24 16:18:29 2008 for Subversion by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
|
|
</body>
|
|
</html>
|