Thanks  ! 

I used doGetFileContents and count the number of lines it works perfectly. 

I tried to use the diffDeleted but it says that the file did not exist in
the previous revision, but not a problem since getFileContents is working
well. 

Thanks a lot for your help

Philippe



AlexanderKitaev wrote:
> 
> Hello,
> 
> ISVNDiffGenerator has an options 'diffDeleted' and 'diffAdded'
> (diffClient.getDiffGenerator().setDiffDeleted(true)...)
> Also, you may use SVNWCClient.doGetFileContents(...) to fetch file
> contents.
> 
> Alexander Kitaev,
> TMate Software,
> http://subgit.com/ - Svn to Git Migration!
> http://svnkit.com/ - Java [Sub]Versioning Library!
> http://hg4j.com/ - Java Mercurial Library!
> http://sqljet.com/ - Java SQLite Library!
> 
> 
> 
> On 9 January 2012 15:49, imthephil <[email protected]> wrote:
>>
>> Hello,
>> I try to get the number of line added and removed for each revision,
>> doDiff is working well for modification (I can compare two versions of
>> the
>> file), now I try to do it for added and removed files. Meaning I want to
>> know the number of line for the added file. And the number of line of the
>> removed file.
>>
>> In git they do it using /dev/null and compare them but I don't know how
>> to
>> specify a null file in the doDiff, I always got errors.
>>
>> Thank you
>>
>> Phil
>> --
>> View this message in context:
>> http://old.nabble.com/doDiff-for-new-Files-tp33107541p33107541.html
>> Sent from the SVNKit - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/doDiff-for-new-Files-tp33107541p33120261.html
Sent from the SVNKit - Users mailing list archive at Nabble.com.


Reply via email to