255 lines
16 KiB
HTML
255 lines
16 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: Import files into the 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>Import files into the 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__Import.html#g6305aae8e982fdbbbb0fd4d33aaf740d">svn_client_import3</a> (<a class="el" href="structsvn__commit__info__t.html">svn_commit_info_t</a> **commit_info_p, const char *path, const char *url, <a class="el" href="svn__types_8h.html#21dd8b080111fa6fb5d59156299f3a2c">svn_depth_t</a> depth, <a class="el" href="svn__types_8h.html#22b35baddc4213c688d1bb12feea1024">svn_boolean_t</a> no_ignore, <a class="el" href="svn__types_8h.html#22b35baddc4213c688d1bb12feea1024">svn_boolean_t</a> ignore_unknown_node_types, const apr_hash_t *revprop_table, <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">Import file or directory <em>path</em> into repository directory <em>url</em> at head, authenticating with the authentication baton cached in <em>ctx</em>, and using <em>ctx->log_msg_func3/<em>ctx->log_msg_baton3</em> to</em> get a log message for the (implied) commit. <a href="#g6305aae8e982fdbbbb0fd4d33aaf740d"></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__Import.html#ge974b2afbdd76069c5393ca4e22d0611">svn_client_import2</a> (<a class="el" href="structsvn__commit__info__t.html">svn_commit_info_t</a> **commit_info_p, const char *path, const char *url, <a class="el" href="svn__types_8h.html#22b35baddc4213c688d1bb12feea1024">svn_boolean_t</a> nonrecursive, <a class="el" href="svn__types_8h.html#22b35baddc4213c688d1bb12feea1024">svn_boolean_t</a> no_ignore, <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__Import.html#g6305aae8e982fdbbbb0fd4d33aaf740d" title="Import file or directory path into repository directory url at head, authenticating...">svn_client_import3()</a>, but with <em>ignore_unknown_node_types</em> always set to <code>FALSE</code>, <em>revprop_table</em> passed as NULL, and <em>depth</em> set according to <em>nonrecursive:</em> if TRUE, then <em>depth</em> is <code>svn_depth_files</code>, else <code>svn_depth_infinity</code>. <a href="#ge974b2afbdd76069c5393ca4e22d0611"></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__Import.html#g1837630712a2dd45e9de04a4188e6057">svn_client_import</a> (<a class="el" href="structsvn__client__commit__info__t.html">svn_client_commit_info_t</a> **commit_info_p, const char *path, const char *url, <a class="el" href="svn__types_8h.html#22b35baddc4213c688d1bb12feea1024">svn_boolean_t</a> nonrecursive, <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__Import.html#ge974b2afbdd76069c5393ca4e22d0611" title="Similar to svn_client_import3(), but with ignore_unknown_node_types always set to...">svn_client_import2()</a>, but with <em>no_ignore</em> always set to FALSE and using the <code><a class="el" href="structsvn__client__commit__info__t.html" title="Information about commits passed back to client from this module.">svn_client_commit_info_t</a></code> type for <em>commit_info_p</em>. <a href="#g1837630712a2dd45e9de04a4188e6057"></a><br></td></tr>
|
|
</table>
|
|
<hr><h2>Function Documentation</h2>
|
|
<a class="anchor" name="g1837630712a2dd45e9de04a4188e6057"></a><!-- doxytag: member="svn_client.h::svn_client_import" ref="g1837630712a2dd45e9de04a4188e6057" args="(svn_client_commit_info_t **commit_info_p, const char *path, const char *url, svn_boolean_t nonrecursive, 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_import </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="structsvn__client__commit__info__t.html">svn_client_commit_info_t</a> ** </td>
|
|
<td class="paramname"> <em>commit_info_p</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const char * </td>
|
|
<td class="paramname"> <em>path</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const char * </td>
|
|
<td class="paramname"> <em>url</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>nonrecursive</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__Import.html#ge974b2afbdd76069c5393ca4e22d0611" title="Similar to svn_client_import3(), but with ignore_unknown_node_types always set to...">svn_client_import2()</a>, but with <em>no_ignore</em> always set to FALSE and using the <code><a class="el" href="structsvn__client__commit__info__t.html" title="Information about commits passed back to client from this module.">svn_client_commit_info_t</a></code> type for <em>commit_info_p</em>.
|
|
<p>
|
|
<dl compact><dt><b><a class="el" href="deprecated.html#_deprecated000035">Deprecated:</a></b></dt><dd>Provided for backward compatibility with the 1.2 API. </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="ge974b2afbdd76069c5393ca4e22d0611"></a><!-- doxytag: member="svn_client.h::svn_client_import2" ref="ge974b2afbdd76069c5393ca4e22d0611" args="(svn_commit_info_t **commit_info_p, const char *path, const char *url, svn_boolean_t nonrecursive, svn_boolean_t no_ignore, 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_import2 </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="structsvn__commit__info__t.html">svn_commit_info_t</a> ** </td>
|
|
<td class="paramname"> <em>commit_info_p</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const char * </td>
|
|
<td class="paramname"> <em>path</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const char * </td>
|
|
<td class="paramname"> <em>url</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>nonrecursive</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>no_ignore</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__Import.html#g6305aae8e982fdbbbb0fd4d33aaf740d" title="Import file or directory path into repository directory url at head, authenticating...">svn_client_import3()</a>, but with <em>ignore_unknown_node_types</em> always set to <code>FALSE</code>, <em>revprop_table</em> passed as NULL, and <em>depth</em> set according to <em>nonrecursive:</em> if TRUE, then <em>depth</em> is <code>svn_depth_files</code>, else <code>svn_depth_infinity</code>.
|
|
<p>
|
|
<dl class="since" compact><dt><b>Since:</b></dt><dd>New in 1.3.</dd></dl>
|
|
<dl compact><dt><b><a class="el" href="deprecated.html#_deprecated000034">Deprecated:</a></b></dt><dd>Provided for backward compatibility with the 1.4 API </dd></dl>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="g6305aae8e982fdbbbb0fd4d33aaf740d"></a><!-- doxytag: member="svn_client.h::svn_client_import3" ref="g6305aae8e982fdbbbb0fd4d33aaf740d" args="(svn_commit_info_t **commit_info_p, const char *path, const char *url, svn_depth_t depth, svn_boolean_t no_ignore, svn_boolean_t ignore_unknown_node_types, const apr_hash_t *revprop_table, 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_import3 </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="structsvn__commit__info__t.html">svn_commit_info_t</a> ** </td>
|
|
<td class="paramname"> <em>commit_info_p</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const char * </td>
|
|
<td class="paramname"> <em>path</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const char * </td>
|
|
<td class="paramname"> <em>url</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"><a class="el" href="svn__types_8h.html#22b35baddc4213c688d1bb12feea1024">svn_boolean_t</a> </td>
|
|
<td class="paramname"> <em>no_ignore</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>ignore_unknown_node_types</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const apr_hash_t * </td>
|
|
<td class="paramname"> <em>revprop_table</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>
|
|
Import file or directory <em>path</em> into repository directory <em>url</em> at head, authenticating with the authentication baton cached in <em>ctx</em>, and using <em>ctx->log_msg_func3/<em>ctx->log_msg_baton3</em> to</em> get a log message for the (implied) commit.
|
|
<p>
|
|
Set <em>*commit_info_p</em> to the results of the commit, allocated in <em>pool</em>. If some components of <em>url</em> do not exist then create parent directories as necessary.<p>
|
|
If <em>path</em> is a directory, the contents of that directory are imported directly into the directory identified by <em>url</em>. Note that the directory <em>path</em> itself is not imported -- that is, the basename of <em>path</em> is not part of the import.<p>
|
|
If <em>path</em> is a file, then the dirname of <em>url</em> is the directory receiving the import. The basename of <em>url</em> is the filename in the repository. In this case if <em>url</em> already exists, return error.<p>
|
|
If <em>ctx->notify_func2</em> is non-NULL, then call <em>ctx->notify_func2</em> with <em>ctx->notify_baton2</em> as the import progresses, with any of the following actions: <code>svn_wc_notify_commit_added</code>, <code>svn_wc_notify_commit_postfix_txdelta</code>.<p>
|
|
Use <em>pool</em> for any temporary allocation.<p>
|
|
If non-NULL, <em>revprop_table</em> is a hash table holding additional, custom revision properties (<code>const char *</code> names mapped to <code><a class="el" href="structsvn__string__t.html" title="A simple counted string.">svn_string_t</a> *</code> values) to be set on the new revision. This table cannot contain any standard Subversion properties.<p>
|
|
<em>ctx->log_msg_func3/<em>ctx->log_msg_baton3</em> are</em> a callback/baton combo that this function can use to query for a commit log message when one is needed.<p>
|
|
If <em>depth</em> is <code>svn_depth_empty</code>, import just <em>path</em> and nothing below it. If <code>svn_depth_files</code>, import <em>path</em> and any file children of <em>path</em>. If <code>svn_depth_immediates</code>, import <em>path</em>, any file children, and any immediate subdirectories (but nothing underneath those subdirectories). If <code>svn_depth_infinity</code>, import <em>path</em> and everything under it fully recursively.<p>
|
|
If <em>no_ignore</em> is <code>FALSE</code>, don't add files or directories that match ignore patterns.<p>
|
|
If <em>ignore_unknown_node_types</em> is <code>FALSE</code>, ignore files of which the node type is unknown, such as device files and pipes.<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>
|