Search in sources :

Example 6 with ClientFactory

use of org.jetbrains.idea.svn.api.ClientFactory in project intellij-community by JetBrains.

the class SvnDiffFromHistoryHandler method executeDiff.

@NotNull
private List<Change> executeDiff(@NotNull FilePath path, @NotNull SvnTarget target1, @NotNull SvnTarget target2) throws VcsException {
    File file = path.getIOFile();
    ClientFactory factory = target2.isURL() ? myVcs.getFactory(file) : DirectoryWithBranchComparer.getClientFactory(myVcs, file);
    return factory.createDiffClient().compare(target1, target2);
}
Also used : ClientFactory(org.jetbrains.idea.svn.api.ClientFactory) File(java.io.File) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

ClientFactory (org.jetbrains.idea.svn.api.ClientFactory)6 NotNull (org.jetbrains.annotations.NotNull)4 VcsException (com.intellij.openapi.vcs.VcsException)2 WorkingCopyFormat (org.jetbrains.idea.svn.WorkingCopyFormat)2 Ref (com.intellij.openapi.util.Ref)1 File (java.io.File)1 ShareDialog (org.jetbrains.idea.svn.dialogs.ShareDialog)1 PropertyValue (org.jetbrains.idea.svn.properties.PropertyValue)1 SvnTarget (org.tmatesoft.svn.core.wc2.SvnTarget)1