我正在 Java 中使用 svnkit 与 svn 存储库交互。
我想读取存储在 svn 中的文件的内容,而不从存储库中 check out 或导出它。这可能吗?
我想读取的示例文件名: http://svnserver/myproject/example.txt
你能帮我一下吗?
最佳答案
尝试SVNRepository.getFile(String path, long revision, SVNProperties properties, OutputStream contents) .
关于java svnkit : read content of file directly from repository, 不导出它,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6994848/