use of com.intellij.cvsSupport2.connections.CvsEnvironment in project intellij-community by JetBrains.
the class CvsCommittedChangesProvider method getLocationFor.
@Nullable
public CvsRepositoryLocation getLocationFor(final FilePath root) {
if (!CvsUtil.fileIsUnderCvs(root.getIOFile())) {
return null;
}
final VirtualFile rootDir = root.isDirectory() ? root.getVirtualFile() : root.getVirtualFileParent();
final String module = CvsUtil.getModuleName(root);
final CvsEnvironment connectionSettings = CvsEntriesManager.getInstance().getCvsConnectionSettingsFor(rootDir);
return new CvsRepositoryLocation(root.getVirtualFile(), connectionSettings, module);
}
Aggregations