mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[Hg]: Remove history limit for annotate command (IDEA-137686)
* without file details it shouldn't lead to any performance problem
This commit is contained in:
@@ -36,8 +36,6 @@ import java.util.List;
|
||||
|
||||
public class HgAnnotationProvider implements AnnotationProvider {
|
||||
|
||||
private static final int DEFAULT_LIMIT = 500;
|
||||
|
||||
@NotNull private final Project myProject;
|
||||
|
||||
public HgAnnotationProvider(@NotNull Project project) {
|
||||
@@ -63,7 +61,7 @@ public class HgAnnotationProvider implements AnnotationProvider {
|
||||
try {
|
||||
HgLogCommand logCommand = new HgLogCommand(myProject);
|
||||
logCommand.setFollowCopies(true);
|
||||
logResult = logCommand.execute(fileToAnnotate, DEFAULT_LIMIT, false);
|
||||
logResult = logCommand.execute(fileToAnnotate, -1, false);
|
||||
}
|
||||
catch (HgCommandException e) {
|
||||
throw new VcsException("Can not annotate, " + HgVcsMessages.message("hg4idea.error.log.command.execution"), e);
|
||||
|
||||
Reference in New Issue
Block a user