Skip to content

Commit e7abdc7

Browse files
committed
small fix
1 parent 7252712 commit e7abdc7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/org/scm4j/vcs/svn/SVNVCS.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -492,11 +492,10 @@ public void listEntries(List<String> entries, String path) throws Exception {
492492
Collection<SVNDirEntry> subEntries = repository.getDir(path, -1, null, (Collection<SVNDirEntry>) null);
493493
List<SVNDirEntry> list = new ArrayList<>(subEntries);
494494
Collections.sort(list, new Comparator<SVNDirEntry>() {
495-
496495
@Override
497496
public int compare(SVNDirEntry o1, SVNDirEntry o2) {
498497
if (o1.getRevision() < o2.getRevision()) {
499-
return -11;
498+
return -1;
500499
}
501500
if (o1.getRevision() > o2.getRevision()) {
502501
return 1;
@@ -678,7 +677,7 @@ public VCSTag createTag(String branchName, String tagName, String tagMessage) th
678677
private SVNLogEntry revToSVNEntry(String branchName, Long rev) throws Exception {
679678
SVNDirEntry info = repository.info(branchName, rev);
680679
@SuppressWarnings("unchecked")
681-
Collection<SVNLogEntry> entries = repository.log(new String[] {branchName}, null, info.getRevision(), rev, true, true);
680+
Collection<SVNLogEntry> entries = repository.log(new String[] {branchName}, null, info.getRevision(), info.getRevision(), true, true);
682681
if (entries != null) {
683682
return entries.iterator().next();
684683
}

0 commit comments

Comments
 (0)