Hello,
> I tried using org.tigris.subversion.javahl.Revision.getInstance(date1) to
> get a Revision object given a certain date. Then hopefully, get the
revision
> number of this Revision object, but I do not think that is possible. Is
> there a way that I can achieve this? Given a startDate and endDate,
get all
> the logs/messages in between for a given svn url?
Did you try to use SVNRepository.getDatedRevision(Date d) method? This
method will return revision number closest to the given date and then
you may use this number in the 'log' call.
Alexander Kitaev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!
sydney wrote:
> Hi, it's me again.
>
> I wanted to use the SVNClientImpl to be able to get the logs/messages given
> a startRevision and an endRevision. From the documentation, it was mentioned
> that I need to add JavaHL API in my classpath to be able to use this class.
> I downloaded the svnkit-javahl.jar but unfortunately, wasn't able to find
> the appopriate artifact key for this jar (groupId, artifactId and version).
> I am using maven 2 in my project by the way. I hope that you can help me.
>
> Also, instead of SVNClientImpl, i wish to use the SVNReposioty.log(String[]
> targetPaths, Collection entries, long startRevision, long endRevision,
> boolean changedPath, boolean strictNode) just like the one shown in the
> example, History.java. But my problem is that, I do not have a startRevision
> number and an endRevision number. What I do have is a startDate and endDate.
> I tried using org.tigris.subversion.javahl.Revision.getInstance(date1) to
> get a Revision object given a certain date. Then hopefully, get the revision
> number of this Revision object, but I do not think that is possible. Is
> there a way that I can achieve this? Given a startDate and endDate, get all
> the logs/messages in between for a given svn url?
>
> Thanks in advance for your help.
>
> Regards,
> Sydney