You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by hw...@apache.org on 2010/08/09 22:05:35 UTC
svn commit: r983801 -
/subversion/trunk/subversion/bindings/javahl/native/SVNClient.cpp
Author: hwright
Date: Mon Aug 9 20:05:35 2010
New Revision: 983801
URL: http://svn.apache.org/viewvc?rev=983801&view=rev
Log:
JavaHL: Update the other client APIs to remove commit_info being returned
through the API.
* subversion/bindings/javahl/native/SVNClient.cpp
(remove, copy, move, mkdir, doImport, propertySet): Use the updated commity
APIs which return commit info back through the callback.
Modified:
subversion/trunk/subversion/bindings/javahl/native/SVNClient.cpp
Modified: subversion/trunk/subversion/bindings/javahl/native/SVNClient.cpp
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/javahl/native/SVNClient.cpp?rev=983801&r1=983800&r2=983801&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/javahl/native/SVNClient.cpp (original)
+++ subversion/trunk/subversion/bindings/javahl/native/SVNClient.cpp Mon Aug 9 20:05:35 2010
@@ -360,7 +360,6 @@ void SVNClient::setProgressListener(Prog
void SVNClient::remove(Targets &targets, const char *message, bool force,
bool keep_local, RevpropTable &revprops)
{
- svn_commit_info_t *commit_info = NULL;
SVN::Pool requestPool;
svn_client_ctx_t *ctx = getContext(message);
if (ctx == NULL)
@@ -369,7 +368,7 @@ void SVNClient::remove(Targets &targets,
const apr_array_header_t *targets2 = targets.array(requestPool);
SVN_JNI_ERR(targets.error_occured(), );
- SVN_JNI_ERR(svn_client_delete3(&commit_info, targets2, force, keep_local,
+ SVN_JNI_ERR(svn_client_delete4(targets2, force, keep_local,
revprops.hash(requestPool), ctx,
requestPool.pool()), );
}
@@ -494,8 +493,7 @@ void SVNClient::copy(CopySources ©So
if (ctx == NULL)
return;
- svn_commit_info_t *commit_info;
- SVN_JNI_ERR(svn_client_copy5(&commit_info, srcs, destinationPath.c_str(),
+ SVN_JNI_ERR(svn_client_copy6(srcs, destinationPath.c_str(),
copyAsChild, makeParents, ignoreExternals,
revprops.hash(requestPool), ctx,
requestPool.pool()), );
@@ -517,8 +515,7 @@ void SVNClient::move(Targets &srcPaths,
if (ctx == NULL)
return;
- svn_commit_info_t *commit_info;
- SVN_JNI_ERR(svn_client_move5(&commit_info, (apr_array_header_t *) srcs,
+ SVN_JNI_ERR(svn_client_move6((apr_array_header_t *) srcs,
destinationPath.c_str(), force, moveAsChild,
makeParents, revprops.hash(requestPool), ctx,
requestPool.pool()), );
@@ -528,7 +525,6 @@ void SVNClient::mkdir(Targets &targets,
RevpropTable &revprops)
{
SVN::Pool requestPool;
- svn_commit_info_t *commit_info = NULL;
svn_client_ctx_t *ctx = getContext(message);
if (ctx == NULL)
return;
@@ -536,7 +532,7 @@ void SVNClient::mkdir(Targets &targets,
const apr_array_header_t *targets2 = targets.array(requestPool);
SVN_JNI_ERR(targets.error_occured(), );
- SVN_JNI_ERR(svn_client_mkdir3(&commit_info, targets2, makeParents,
+ SVN_JNI_ERR(svn_client_mkdir4(targets2, makeParents,
revprops.hash(requestPool), ctx,
requestPool.pool()), );
}
@@ -648,14 +644,12 @@ void SVNClient::doImport(const char *pat
Path intUrl(url);
SVN_JNI_ERR(intUrl.error_occured(), );
- svn_commit_info_t *commit_info = NULL;
svn_client_ctx_t *ctx = getContext(message);
if (ctx == NULL)
return;
- SVN_JNI_ERR(svn_client_import3(&commit_info, intPath.c_str(),
- intUrl.c_str(), depth, noIgnore,
- ignoreUnknownNodeTypes,
+ SVN_JNI_ERR(svn_client_import4(intPath.c_str(), intUrl.c_str(), depth,
+ noIgnore, ignoreUnknownNodeTypes,
revprops.hash(requestPool), ctx,
requestPool.pool()), );
}
@@ -974,7 +968,6 @@ void SVNClient::propertySet(const char *
else
val = svn_string_create(value, requestPool.pool());
- svn_commit_info_t *commit_info = NULL;
Path intPath(path);
SVN_JNI_ERR(intPath.error_occured(), );
@@ -982,7 +975,7 @@ void SVNClient::propertySet(const char *
if (ctx == NULL)
return;
- SVN_JNI_ERR(svn_client_propset3(&commit_info, name, val, intPath.c_str(),
+ SVN_JNI_ERR(svn_client_propset4(name, val, intPath.c_str(),
depth, force, SVN_INVALID_REVNUM,
changelists.array(requestPool),
revprops.hash(requestPool),