mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
svn: Refactored SvnUtil.getFileContents - reuse factory selection logic from SvnVcs
This commit is contained in:
@@ -747,9 +747,7 @@ public class SvnUtil {
|
||||
@Nullable final SVNRevision revision,
|
||||
@Nullable final SVNRevision pegRevision)
|
||||
throws VcsException {
|
||||
ClientFactory factory = target.isFile() ? vcs.getFactory(target.getFile()) : vcs.getFactory();
|
||||
|
||||
return factory.createContentClient().getContent(target, revision, pegRevision);
|
||||
return vcs.getFactory(target).createContentClient().getContent(target, revision, pegRevision);
|
||||
}
|
||||
|
||||
public static boolean hasDefaultPort(@NotNull SVNURL result) {
|
||||
|
||||
Reference in New Issue
Block a user