Hi Azzurri,

I have handled this kind of a scenario by parsing the unified diff output
you can get from the diff operation.
The logic you need to write to do this is very simple.

I did this sometime back and not sure if there are convenience methods in
the API now. But knowing the 2 revisions getting the unified diff is pretty
straightforward, and you can get the added, deleted, modified line counts in
a jiffy.

Regards,
Aravinda

On Thu, Jun 30, 2011 at 2:12 PM, Azzurri <[email protected]> wrote:

>
> Hi all,
>
> I want to get number of LOC was added, or deleted, or modified between two
> revisions. However, when I use doDiff, I just got LOC but not number
> (quantity) of them (my code was attached)
> http://old.nabble.com/file/p31961153/Comparision.java Comparision.java .
> Can
> someone show me how to get how many lines was added, or deleted, or
> modified
> between two revisions. Or simply, just give me a suggestion to do it.
>
> Thanks so much!!!
> --
> View this message in context:
> http://old.nabble.com/How-to-get-number-of-LOC-was-added%2C-deleted%2C-or-modified--tp31961153p31961153.html
> Sent from the SVNKit - Users mailing list archive at Nabble.com.
>
>
>

Reply via email to