diff options
Diffstat (limited to 'plugins/svn4idea/src/org/jetbrains/idea/svn/lock/SvnKitLockClient.java')
-rw-r--r-- | plugins/svn4idea/src/org/jetbrains/idea/svn/lock/SvnKitLockClient.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/svn4idea/src/org/jetbrains/idea/svn/lock/SvnKitLockClient.java b/plugins/svn4idea/src/org/jetbrains/idea/svn/lock/SvnKitLockClient.java index d11aec262b09..2db2650aab04 100644 --- a/plugins/svn4idea/src/org/jetbrains/idea/svn/lock/SvnKitLockClient.java +++ b/plugins/svn4idea/src/org/jetbrains/idea/svn/lock/SvnKitLockClient.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.ProgressTracker; import org.jetbrains.idea.svn.commandLine.SvnBindException; import org.tmatesoft.svn.core.SVNException; -import org.tmatesoft.svn.core.wc.ISVNEventHandler; import org.tmatesoft.svn.core.wc.SVNWCClient; import java.io.File; @@ -17,7 +17,7 @@ import java.io.File; public class SvnKitLockClient extends BaseSvnClient implements LockClient { @Override - public void lock(@NotNull File file, boolean force, @NotNull String message, @Nullable ISVNEventHandler handler) throws VcsException { + public void lock(@NotNull File file, boolean force, @NotNull String message, @Nullable ProgressTracker handler) throws VcsException { try { getClient(handler).doLock(new File[]{file}, force, message); } @@ -27,7 +27,7 @@ public class SvnKitLockClient extends BaseSvnClient implements LockClient { } @Override - public void unlock(@NotNull File file, boolean force, @Nullable ISVNEventHandler handler) throws VcsException { + public void unlock(@NotNull File file, boolean force, @Nullable ProgressTracker handler) throws VcsException { try { getClient(handler).doUnlock(new File[]{file}, force); } @@ -37,10 +37,10 @@ public class SvnKitLockClient extends BaseSvnClient implements LockClient { } @NotNull - private SVNWCClient getClient(@Nullable ISVNEventHandler handler) { + private SVNWCClient getClient(@Nullable ProgressTracker handler) { SVNWCClient client = myVcs.getSvnKitManager().createWCClient(); - client.setEventHandler(handler); + client.setEventHandler(toEventHandler(handler)); return client; } |