[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: Wed, 16 Sep 2009 12:35:54 -0500

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
>> to
>> FILE (where FILE is a URL to the file in the repository or the path
>> to
>> 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
>> "svn help log" and "svn help diff" will show you all the available
>> options
>> 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].
Received on 2009-09-16 19:36:48 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.