Java 如何使用svnkit获取修订号的确切文件夹位置
我有一个SVN位置,我每天都在那里发送所有代码签入的通知 我可以从主存储库中获取最近一天的修订号,但无法获取代码签入存储库下的确切文件夹Java 如何使用svnkit获取修订号的确切文件夹位置,java,svn,svnkit,Java,Svn,Svnkit,我有一个SVN位置,我每天都在那里发送所有代码签入的通知 我可以从主存储库中获取最近一天的修订号,但无法获取代码签入存储库下的确切文件夹 SVNRepository repository = null; repository = SVNRepositoryFactory.create(SVNURL.parseURIDecoded(url)); ISVNAuthenticationManager authManager =
SVNRepository repository = null;
repository = SVNRepositoryFactory.create(SVNURL.parseURIDecoded(url));
ISVNAuthenticationManager authManager =
SVNWCUtil.createDefaultAuthenticationManager("", "");
repository.setAuthenticationManager(authManager);
SvnOperationFactory operationFactory = new SvnOperationFactory();
SvnLog logOperation = operationFactory.createLog();
logOperation.setSingleTarget(
SvnTarget.fromURL(
SVNURL.parseURIEncoded(url)));
logOperation.setRevisionRanges( Collections.singleton(
SvnRevisionRange.create(
SVNRevision.create( 1 ),
SVNRevision.HEAD
)
) );
Collection<SVNLogEntry> logEntries = logOperation.run( null );
SVNRepository repository=null;
repository=SVNRepositoryFactory.create(SVNURL.parseURIDecoded(url));
ISVNAuthenticationManager身份验证管理器=
SVNWCUtil.createDefaultAuthenticationManager(“,”);
setAuthenticationManager(authManager);
SvnOperationFactory operationFactory=新的SvnOperationFactory();
SvnLog logOperation=operationFactory.createLog();
logOperation.setSingleTarget(
SvnTarget.fromURL(
parseURIEncoded(url));
logOperation.setRevisionRanges(Collections.singleton(
SvnRevisionRange.create(
SVNRevision.创建(1),
SVNRevision.HEAD
)
) );
Collection logEntries=logOperation.run(null);
还没有答案??