fix mercurial paging bug

This commit is contained in:
Sebastian Sdorra
2011-04-03 17:47:12 +02:00
parent 8b7774d284
commit de273ad88d

View File

@@ -123,7 +123,7 @@ public class HgChangesetViewer implements ChangesetViewer
String repositoryPath = getRepositoryPath(repository);
int total = getTotalChangesets(repositoryPath);
int startRev = total - start;
int endRev = startRev - max;
int endRev = total - start - (max - 1);
if (endRev < 0)
{