问题
I am using svnkit in Java to interact with a svn repository.
I would like to read the content of a file that is stored in svn without checking it out from the repository or exporting it. Is that possible?
Example filename that i would like to read: http://svnserver/myproject/example.txt
Can you help me out?
回答1:
Try SVNRepository.getFile(String path, long revision, SVNProperties properties, OutputStream contents).
来源:https://stackoverflow.com/questions/6994848/java-svnkit-read-content-of-file-directly-from-repository-without-exporting-it