From 61608d28386edea55a2db2f2d87489669d366aab Mon Sep 17 00:00:00 2001 From: Konstantin Kolosovsky Date: Wed, 12 Nov 2014 18:43:49 +0300 Subject: [PATCH] IDEA-118950 Only set limit for "svn log" command if corresponding history limit is configured in settings --- .../org/jetbrains/idea/svn/history/SvnHistoryProvider.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/svn4idea/src/org/jetbrains/idea/svn/history/SvnHistoryProvider.java b/plugins/svn4idea/src/org/jetbrains/idea/svn/history/SvnHistoryProvider.java index 3b25288b70b4..c5bc11f485bd 100644 --- a/plugins/svn4idea/src/org/jetbrains/idea/svn/history/SvnHistoryProvider.java +++ b/plugins/svn4idea/src/org/jetbrains/idea/svn/history/SvnHistoryProvider.java @@ -175,8 +175,10 @@ public class SvnHistoryProvider public void reportAppendableHistory(FilePath path, final VcsAppendableHistorySessionPartner partner) throws VcsException { // request MAXIMUM_HISTORY_ROWS + 1 log entries to be able to detect if there are more log entries than it is configured to show - // see LimitHistoryCheck - reportAppendableHistory(path, partner, null, null, VcsConfiguration.getInstance(myVcs.getProject()).MAXIMUM_HISTORY_ROWS + 1, null, - false); + VcsConfiguration configuration = VcsConfiguration.getInstance(myVcs.getProject()); + int limit = configuration.LIMIT_HISTORY ? configuration.MAXIMUM_HISTORY_ROWS + 1 : 0; + + reportAppendableHistory(path, partner, null, null, limit, null, false); } public void reportAppendableHistory(FilePath path, final VcsAppendableHistorySessionPartner partner,