mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 16:05:44 +01:00
improve svn test client
This commit is contained in:
@@ -35,7 +35,9 @@ package sonia.scm.repository.client;
|
||||
|
||||
//~--- non-JDK imports --------------------------------------------------------
|
||||
|
||||
import org.tmatesoft.svn.core.SVNCommitInfo;
|
||||
import org.tmatesoft.svn.core.SVNDepth;
|
||||
import org.tmatesoft.svn.core.SVNErrorMessage;
|
||||
import org.tmatesoft.svn.core.SVNException;
|
||||
import org.tmatesoft.svn.core.SVNURL;
|
||||
import org.tmatesoft.svn.core.internal.io.dav.DAVRepositoryFactory;
|
||||
@@ -79,6 +81,9 @@ public class SvnRepositoryClient extends AbstractRepositoryClient
|
||||
|
||||
DefaultSVNOptions options = new DefaultSVNOptions();
|
||||
|
||||
options.setAuthStorageEnabled(false);
|
||||
options.setUseAutoProperties(false);
|
||||
|
||||
if ((username != null) && (password != null))
|
||||
{
|
||||
client = SVNClientManager.newInstance(options, username, password);
|
||||
@@ -165,8 +170,16 @@ public class SvnRepositoryClient extends AbstractRepositoryClient
|
||||
|
||||
try
|
||||
{
|
||||
cc.doCommit(pendingFiles.toArray(new File[0]), true, message, null, null,
|
||||
true, true, SVNDepth.INFINITY);
|
||||
SVNCommitInfo info = cc.doCommit(pendingFiles.toArray(new File[0]), true,
|
||||
message, null, null, true, true,
|
||||
SVNDepth.INFINITY);
|
||||
SVNErrorMessage msg = info.getErrorMessage();
|
||||
|
||||
if (msg != null)
|
||||
{
|
||||
throw new RepositoryClientException(msg.getFullMessage());
|
||||
}
|
||||
|
||||
pendingFiles.clear();
|
||||
}
|
||||
catch (SVNException ex)
|
||||
|
||||
Reference in New Issue
Block a user