我使用了一个示例 java 代码来获取文件的修订历史,但只有一个修订。该文件的存储库中有许多修订版。那么如何一次获得该文件的所有修订版?
…
long startRevision = -1;
long endRevision = 0; //HEAD (i.e. the latest) revision
SVNRepositoryFactoryImpl.setup();
repository = SVNRepositoryFactory.create( SVNURL.parseURIEncoded(url) );
ISVNAuthenticationManager authManager =
SVNWCUtil.createDefaultAuthenticationManager( name, password );
repository.setAuthenticationManager( authManager );
Collection logEntries = null;
logEntries = repository.log( new String[] { "EJB.java" }, null, startRevision,
endRevision, true, true );
…