also correct property name in code...
for IDEA-102873 OutOfMemory when committing large file
This commit is contained in:
irengrig
2013-03-14 18:27:54 +04:00
parent b82d68944b
commit a49c40efea
2 changed files with 2 additions and 2 deletions
@@ -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() {