[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn log options

From: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Thu, 24 Sep 2009 10:34:33 -0500

On Sep 24, 2009, at 05:31, Okonkwo Joy Ukamaka (Student Com08) wrote:

>>> Thanks so much for your apt response, Please one more thing, I could
>>> see from the log that number of lines added or deleted to a file is
>>> not evident, as these are important information i need from the log
>>> messages, is there any option to see these information?
>>
>> No, I'm afraid that information is not available via an svn command.
>> If you want it, you will have to generate it yourself. You could use
>> "svn diff" to get the diff and then analyze it to see how many lines
>> were added/deleted/changed.
>
> Please I need detailed information on how best to obtain number of
> lines added and deleted from svn log of projects, as using the
> "diff" option seem almost impractical for almost 50,000 files and
> having to do this for 7 open source projects. I need these metrics
> for my thesis work on detecting code clones using metrics. Any
> suggestions will be highly appreciated.

Sorry, "svn log" does not show you the number of lines added and
deleted. There is no built-in command that shows you that. The only
way I can think of to get that information is to parse the output of
"svn diff". I believe the reason this information is not easily
accessible is that it's often not very useful information.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2399348

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-24 18:07:45 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.