getting contents of a file with line nos and comments .

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

getting contents of a file with line nos and comments .

by Komal Goyal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

while reading a file from repository using

repository.getFile(filePath, -1, fileProperties, baos);

I want to get the content along with line nos
get the comments related to this file

Please let me know how is this possible..

thanks,
Komal

Re: getting contents of a file with line nos and comments .

by Alexander Kitaev-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

> I want to get the content along with line nos
> get the comments related to this file
Line numbers you'll have to add yourself (or may be you'd like to get
"svn blame" result)?

As for comments - you'll need to get file history. If you're using
SVNRepository, then log method will give you information on file history
including comments for each revision.

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

Komal Goyal wrote:

> Hi,
>
> while reading a file from repository using
>
> repository.getFile(filePath, -1, fileProperties, baos);
>
> I want to get the content along with line nos
> get the comments related to this file
>
> Please let me know how is this possible..
>
> thanks,
> Komal

---------------------------------------------------------------------
To unsubscribe, e-mail: svnkit-users-unsubscribe@...
For additional commands, e-mail: svnkit-users-help@...