mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
also correct property name in code... for IDEA-102873 OutOfMemory when committing large file
This commit is contained in:
@@ -218,7 +218,7 @@ public class ContentRevisionCache {
|
||||
throw new VcsException("Can not show contents of \n'" + path +
|
||||
"'.\nFile size is bigger than " +
|
||||
StringUtil.formatFileSize(VcsUtil.getMaxVcsLoadedFileSize()) +
|
||||
".\n\nYou can relax this restriction by increasing max.vcs.loaded.size.kb property in idea.properties file.");
|
||||
".\n\nYou can relax this restriction by increasing " + VcsUtil.MAX_VCS_LOADED_SIZE_KB + " property in idea.properties file.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ public class VcsUtil {
|
||||
protected static final char[] ourCharsToBeChopped = new char[]{'/', '\\'};
|
||||
private static final Logger LOG = Logger.getInstance("#com.intellij.vcsUtil.VcsUtil");
|
||||
|
||||
private final static String MAX_VCS_LOADED_SIZE_KB = "max.vcs.loaded.size.kb";
|
||||
public final static String MAX_VCS_LOADED_SIZE_KB = "idea.max.vcs.loaded.size.kb";
|
||||
private static final int ourMaxLoadedFileSize = computeLoadedFileSize();
|
||||
|
||||
public static int getMaxVcsLoadedFileSize() {
|
||||
|
||||
Reference in New Issue
Block a user