svn: Refactored SvnUtil.getFileContents - reuse factory selection logic from SvnVcs

This commit is contained in:
Konstantin Kolosovsky
2014-02-10 19:56:38 +04:00
parent 840b6bee80
commit 340659b5e5
@@ -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) {