mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-01 02:55:56 +01:00
Add truncated flag for svn
This commit is contained in:
@@ -143,6 +143,9 @@ public class SvnBrowseCommand extends AbstractSvnCommand
|
|||||||
traverse(svnRepository, revisionNumber, request, child, createBasePath(child.getPath()));
|
traverse(svnRepository, revisionNumber, request, child, createBasePath(child.getPath()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (resultCount >= request.getLimit() + request.getProceedFrom()) {
|
||||||
|
parent.setTruncated(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private String createBasePath(String path)
|
private String createBasePath(String path)
|
||||||
|
|||||||
@@ -199,6 +199,7 @@ public class SvnBrowseCommandTest extends AbstractSvnCommandTestBase
|
|||||||
Collection<FileObject> foList = result.getFile().getChildren();
|
Collection<FileObject> foList = result.getFile().getChildren();
|
||||||
|
|
||||||
assertThat(foList).extracting("name").containsExactlyInAnyOrder("a.txt");
|
assertThat(foList).extracting("name").containsExactlyInAnyOrder("a.txt");
|
||||||
|
assertThat(result.getFile().isTruncated()).isTrue();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
Reference in New Issue
Block a user