use of org.jetbrains.idea.svn.WorkingCopyFormat in project intellij-community by JetBrains.
the class SvnKitAdminAreaFactorySelector method getEnabledFactories.
public Collection getEnabledFactories(File path, Collection factories, boolean writeAccess) throws SVNException {
if (ApplicationManager.getApplication().isUnitTestMode()) {
return factories;
}
if (!writeAccess) {
return factories;
}
Collection result = null;
final WorkingCopyFormat presetFormat = SvnWorkingCopyFormatHolder.getPresetFormat();
if (presetFormat != null) {
result = format2Factories(presetFormat, factories);
}
if (result == null) {
final WorkingCopyFormat format = SvnFormatSelector.getWorkingCopyFormat(path);
result = format2Factories(format, factories);
}
if (result == null) {
throw new SVNException(SVNErrorMessage.create(SVNErrorCode.WC_NOT_DIRECTORY));
}
return result;
}
Aggregations