How to get all the revision Numbers a file/folder has undergone given only the repository path ?

View: New views
2 Messages — Rating Filter:   Alert me  

How to get all the revision Numbers a file/folder has undergone given only the repository path ?

by saasira :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi! Everybody,
I  want to display all the revision numbers a  file/folder       has  undergone ,given  the repository path only.

repository.getFilerevisions() method asks for start revision and end revision ,in addition to path..and 
same is the case with repository.log() method.

How to get all the revisions a file has undergone  from the beginning to till now, given only the  repository path?

Can anyone suggest me a solution,
Thanking you in advance,
Samba.

--
Regards...
Samba.

Re: How to get all the revision Numbers a file/folder has undergone given only the repository path ?

by Alexander Kitaev-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Samba,

 > How to get all the revisions a file has undergone  from the beginning to
 > till now, given only the  repository path?
I'd suggest you to use SVNRepository.log(...) method. Use
SVNRepository.getLatestRevision as startRevision and 0 as the endRevision.

You may also use doLog(...) method of SVNLogClient.

Alexander Kitaev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!

Samba wrote:

> Hi! Everybody,
> I  want to display all the revision numbers a  file/folder       has  
> undergone ,given  the repository path only.
>
> repository.getFilerevisions() method asks for start revision and end
> revision ,in addition to path..and
> same is the case with repository.log() method.
>
> How to get all the revisions a file has undergone  from the beginning to
> till now, given only the  repository path?
>
> Can anyone suggest me a solution,
> Thanking you in advance,
> Samba.
>
> --
> Regards...
> Samba.