mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-03 03:55:51 +01:00
fix wrong start and end revision for svn log command
This commit is contained in:
@@ -165,6 +165,7 @@ public class SvnLogCommand extends AbstractSvnCommand implements LogCommand
|
|||||||
ChangesetPagingResult changesets = null;
|
ChangesetPagingResult changesets = null;
|
||||||
SVNRepository repository = null;
|
SVNRepository repository = null;
|
||||||
String startRevision = request.getStartChangeset();
|
String startRevision = request.getStartChangeset();
|
||||||
|
String endRevision = request.getEndChangeset();
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -174,9 +175,14 @@ public class SvnLogCommand extends AbstractSvnCommand implements LogCommand
|
|||||||
long endRev = 0;
|
long endRev = 0;
|
||||||
long maxRev = startRev;
|
long maxRev = startRev;
|
||||||
|
|
||||||
if (Util.isNotEmpty(startRevision))
|
if (!Strings.isNullOrEmpty(startRevision))
|
||||||
{
|
{
|
||||||
maxRev = Long.parseLong(startRevision);
|
startRev = Long.parseLong(startRevision);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!Strings.isNullOrEmpty(endRevision))
|
||||||
|
{
|
||||||
|
endRev = Long.parseLong(endRevision);
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] pathArray = null;
|
String[] pathArray = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user