integration tests for modifications

This commit is contained in:
Mohamed Karray
2018-09-13 17:29:52 +02:00
parent 6c53675e2c
commit 188d2d8cef
7 changed files with 277 additions and 9 deletions

View File

@@ -167,6 +167,10 @@ public class SvnRepositoryServiceProvider extends RepositoryServiceProvider
return new SvnLogCommand(context, repository);
}
public ModificationsCommand getModificationsCommand() {
return new SvnModificationsCommand(context, repository);
}
/**
* Method description
*

View File

@@ -70,13 +70,15 @@ class SvnChangeWorker {
SVNWCClient wClient = client.getWCClient();
// add files
try {
wClient.doAdd(addedFiles.toArray(new File[0]), true, false, false,
SVNDepth.INFINITY, false, false, false);
addedFiles.clear();
if (!addedFiles.isEmpty()){
try {
wClient.doAdd(addedFiles.toArray(new File[0]), true, false, false,
SVNDepth.INFINITY, false, false, false);
addedFiles.clear();
} catch (SVNException ex) {
throw new RepositoryClientException("failed to add files", ex);
} catch (SVNException ex) {
throw new RepositoryClientException("failed to add files", ex);
}
}
// remove files