mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vcs]: deprecate getRepositoryForFileQuick, add one missing usage
* use this deprecated method only as a deadlock quick fix solution; * todo: if repository not found, but vcs vf root exists, add log.warn and start backgroundable repository creation process instead of using EDT; if mappings were changed and EDT started repository constructions -> we should manage this properly.
This commit is contained in:
@@ -57,8 +57,12 @@ public abstract class AbstractRepositoryManager<T extends Repository>
|
||||
public T getRepositoryForFile(@NotNull VirtualFile file) {
|
||||
return validateAndGetRepository(myGlobalRepositoryManager.getRepositoryForFile(file));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @Deprecated to delete in 2017.X
|
||||
*/
|
||||
@Nullable
|
||||
@Deprecated
|
||||
public T getRepositoryForFileQuick(@NotNull VirtualFile file) {
|
||||
return validateAndGetRepository(myGlobalRepositoryManager.getRepositoryForFileQuick(file));
|
||||
}
|
||||
|
||||
@@ -94,7 +94,11 @@ public class VcsRepositoryManager extends AbstractProjectComponent implements Di
|
||||
return getRepositoryForFile(file, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Deprecated to delete in 2017.X
|
||||
*/
|
||||
@Nullable
|
||||
@Deprecated
|
||||
public Repository getRepositoryForFileQuick(@NotNull VirtualFile file) {
|
||||
return getRepositoryForFile(file, true);
|
||||
}
|
||||
|
||||
@@ -422,7 +422,7 @@ public class GithubUtil {
|
||||
return repository;
|
||||
}
|
||||
}
|
||||
return manager.getRepositoryForFile(project.getBaseDir());
|
||||
return manager.getRepositoryForFileQuick(project.getBaseDir());
|
||||
}
|
||||
|
||||
public static boolean addGithubRemote(@NotNull Project project,
|
||||
|
||||
Reference in New Issue
Block a user