diff options
Diffstat (limited to 'plugins/svn4idea/src/org/jetbrains/idea/svn/checkin/SvnKitImportClient.java')
-rw-r--r-- | plugins/svn4idea/src/org/jetbrains/idea/svn/checkin/SvnKitImportClient.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/svn4idea/src/org/jetbrains/idea/svn/checkin/SvnKitImportClient.java b/plugins/svn4idea/src/org/jetbrains/idea/svn/checkin/SvnKitImportClient.java index 23edc8f22253..d64f8c3f95a9 100644 --- a/plugins/svn4idea/src/org/jetbrains/idea/svn/checkin/SvnKitImportClient.java +++ b/plugins/svn4idea/src/org/jetbrains/idea/svn/checkin/SvnKitImportClient.java @@ -4,9 +4,9 @@ import com.intellij.openapi.vcs.VcsException; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import org.jetbrains.idea.svn.api.BaseSvnClient; +import org.jetbrains.idea.svn.api.Depth; import org.jetbrains.idea.svn.commandLine.SvnBindException; import org.tmatesoft.svn.core.SVNCommitInfo; -import org.tmatesoft.svn.core.SVNDepth; import org.tmatesoft.svn.core.SVNException; import org.tmatesoft.svn.core.SVNURL; import org.tmatesoft.svn.core.wc.ISVNCommitHandler; @@ -22,18 +22,18 @@ public class SvnKitImportClient extends BaseSvnClient implements ImportClient { @Override public long doImport(@NotNull File path, @NotNull SVNURL url, - @Nullable SVNDepth depth, + @Nullable Depth depth, @NotNull String message, boolean noIgnore, @Nullable CommitEventHandler handler, @Nullable ISVNCommitHandler commitHandler) throws VcsException { SVNCommitClient client = myVcs.getSvnKitManager().createCommitClient(); - client.setEventHandler(handler); + client.setEventHandler(toEventHandler(handler)); client.setCommitHandler(commitHandler); try { - SVNCommitInfo info = client.doImport(path, url, message, null, !noIgnore, false, depth); + SVNCommitInfo info = client.doImport(path, url, message, null, !noIgnore, false, toDepth(depth)); return info.getNewRevision(); } catch (SVNException e) { |