diff options
Diffstat (limited to 'plugins/svn4idea/src/org/jetbrains/idea/svn/checkout/SvnKitCheckoutClient.java')
-rw-r--r-- | plugins/svn4idea/src/org/jetbrains/idea/svn/checkout/SvnKitCheckoutClient.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/svn4idea/src/org/jetbrains/idea/svn/checkout/SvnKitCheckoutClient.java b/plugins/svn4idea/src/org/jetbrains/idea/svn/checkout/SvnKitCheckoutClient.java index 9abd2da1b35c..d8f0ea5be3d2 100644 --- a/plugins/svn4idea/src/org/jetbrains/idea/svn/checkout/SvnKitCheckoutClient.java +++ b/plugins/svn4idea/src/org/jetbrains/idea/svn/checkout/SvnKitCheckoutClient.java @@ -5,11 +5,11 @@ import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import org.jetbrains.idea.svn.WorkingCopyFormat; import org.jetbrains.idea.svn.api.BaseSvnClient; +import org.jetbrains.idea.svn.api.Depth; +import org.jetbrains.idea.svn.api.ProgressTracker; import org.jetbrains.idea.svn.commandLine.SvnBindException; -import org.tmatesoft.svn.core.SVNDepth; import org.tmatesoft.svn.core.SVNException; import org.tmatesoft.svn.core.internal.wc2.SvnWcGeneration; -import org.tmatesoft.svn.core.wc.ISVNEventHandler; import org.tmatesoft.svn.core.wc.SVNRevision; import org.tmatesoft.svn.core.wc.SVNUpdateClient; import org.tmatesoft.svn.core.wc2.SvnTarget; @@ -39,11 +39,11 @@ public class SvnKitCheckoutClient extends BaseSvnClient implements CheckoutClien public void checkout(@NotNull SvnTarget source, @NotNull File destination, @Nullable SVNRevision revision, - @Nullable SVNDepth depth, + @Nullable Depth depth, boolean ignoreExternals, boolean force, @NotNull WorkingCopyFormat format, - @Nullable ISVNEventHandler handler) throws VcsException { + @Nullable ProgressTracker handler) throws VcsException { assertUrl(source); validateFormat(format, getSupportedFormats()); @@ -54,10 +54,10 @@ public class SvnKitCheckoutClient extends BaseSvnClient implements CheckoutClien } client.setIgnoreExternals(ignoreExternals); - client.setEventHandler(handler); + client.setEventHandler(toEventHandler(handler)); try { - client.doCheckout(source.getURL(), destination, source.getPegRevision(), revision, depth, force); + client.doCheckout(source.getURL(), destination, source.getPegRevision(), revision, toDepth(depth), force); } catch (SVNException e) { throw new SvnBindException(e); |