I need to get log from SVNRepository from specific folder.
For example - I have
SVNURL url = SVNURL.parseURIEncoded("https://subversion.assembla.com/svn/jscrum");
SVNRepository svnRepository = DAVRepositoryFactory.create(url);
and I'm getting log from repository:
Collection logEntries = svnRepository.log(new String[] { "" }, null, startRevision, endRevision, true, true);
And it's working correct, but shows me log from whole repo. I need changes from folder on repo: "/trunk/js/web/src/main/webapp".
I've tried some 'tricks', but none of them are working :<
SVNURL url = SVNURL.parseURIEncoded("https://subversion.assembla.com/svn/jscrum/trunk/js/web/src/main/webapp");
or
Collection logEntries = svnRepository.log(new String[] { "/trunk/js/web/src/main/webapp" }, null, startRevision, endRevision, true, true);
One option is to check if returned path from whole repo contains my directory path, but it seems not so proffesional ; p
Thanks for any advices.
Ok, so solution looks like this (for next generation of searchers :P):
+ end of for(s) and if(s)