svnkit, list all files of an SVN repository, without checking out the files

天大地大妈咪最大 提交于 2019-12-19 11:09:34

问题


svnkit.com is an SVN library in Java. For instance, you can get the log of an SVN repository as follows:

SVNClientManager.newInstance().getLogClient();
SVNLogClient.doLog(SVNURL url, String[] paths, SVNRevision pegRevision, SVNRevision startRevision, SVNRevision endRevision, boolean stopOnCopy, boolean discoverChangedPaths,
            boolean includeMergedRevisions, long limit, String[] revisionProperties, final ISVNLogEntryHandler handler);

How do I list all files of an SVN repository (without checking out the files)?


回答1:


Check SvnList. For an example on how to use, have a look at org.tmatesoft.svn.test.ListTest#testListOnRepositoryRoot et al. as it is present in the latest revision of the 1.7.x branch in the SVNKit repository.



来源:https://stackoverflow.com/questions/16316098/svnkit-list-all-files-of-an-svn-repository-without-checking-out-the-files

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!