On Thu, Sep 24, 2009 at 06:31, Okonkwo Joy Ukamaka (Student Com08)
> Hi ALL,
> 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.
Please re-read the responses Ryan Schmidt gave you 1 & 2 weeks ago.
Those are the methods available using standard Subversion methods. You
will need to do most of this work yourself using svn log & svn diff.
> -----Original Message-----
> From: Ryan Schmidt [mailto:subversion-2009b_at_ryandesign.com]
> Sent: Wed 9/16/2009 7:35 PM
> To: Okonkwo Joy Ukamaka (Student Com08)
> Cc: Subversion Users
> Subject: Re: svn log options
> On Sep 16, 2009, at 10:42, Okonkwo Joy Ukamaka (Student Com08) wrote:
>> Ryan Schmidt wrote:
>>> On Sep 11, 2009, at 12:15, Okonkwo Joy Ukamaka (Student Com08) wrote:
>>>> My name is Joy Okonkwo, an Msc student of Free University of
>>>> Bolzano, Italy. I am currently working on a thesis to detect clones
>>>> in some open source projects using metrics. As a result I would have
>>>> to obtain some change metrics from the svn log of the projects.
>>>> Please I would like to know the log options that show the log of
>>>> changes made to each file in a project, with the name of the file,
>>>> the changes, number of revisions for the file and what was changed
>>>> in each revision.
>>> "svn log FILE" will show you the log messages for every change made
>>> FILE (where FILE is a URL to the file in the repository or the path
>>> the file on disk in a working copy -- if the latter, make sure the
>>> working copy is up to date (that you have run "svn update"))
>>> "svn log -v FILE" will additionally show you which files were changed
>>> by each commit
>>> "svn log -v -q FILE" will omit the log messages and show you only
>>> which files were changed
>>> "svn diff -c REVISION FILE" will show you what changes were made to
>>> FILE in REVISION
>>> "svn help log" and "svn help diff" will show you all the available
>>> There isn't a built-in command to answer the question "how many times
>>> has this file been modified" but you can parse the output of "svn
>>> log -
>>> q FILE" to get that
>>> If you are looking for statistics about a repository, separate
>>> packages like svnstat might help
>> 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.
> P.S: Don't forget to use Reply All so your reply goes to the list too,
> not just to me.
> To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-24 14:49:01 CEST