mirror of
				https://github.com/scm-manager/scm-manager.git
				synced 2025-10-31 10:35: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())); | ||||
|       } | ||||
|     } | ||||
|     if (resultCount >= request.getLimit() + request.getProceedFrom()) { | ||||
|       parent.setTruncated(true); | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   private String createBasePath(String path) | ||||
|   | ||||
| @@ -199,6 +199,7 @@ public class SvnBrowseCommandTest extends AbstractSvnCommandTestBase | ||||
|     Collection<FileObject> foList = result.getFile().getChildren(); | ||||
|  | ||||
|     assertThat(foList).extracting("name").containsExactlyInAnyOrder("a.txt"); | ||||
|     assertThat(result.getFile().isTruncated()).isTrue(); | ||||
|   } | ||||
|  | ||||
|   @Test | ||||
|   | ||||
		Reference in New Issue
	
	Block a user