IDEA-118950 Only set limit for "svn log" command if corresponding history limit is configured in settings

This commit is contained in:
Konstantin Kolosovsky
2014-11-12 18:43:49 +03:00
parent 068f42ca10
commit 61608d2838
@@ -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,