[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: Fri, 11 Sep 2009 13:24:09 -0500

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
FILE in REVISION

"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

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-11 20:25:00 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.