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

Re: [Issue 2206] RFE: Changed #/lines information in svn log -v

From: John Peacock <jpeacock_at_rowman.com>
Date: 2005-02-10 18:36:31 CET

Adrian Robert wrote:

> It's a quick way to determine the rough magnitude of changes that went
> into a certain revision. This is useful in general for finding out the
> amount of work/change has gone into a file over various periods of time
> (helps you identify where extension / maintenance work is being focused
> in a project, can suggest places to refactor, etc.).

This topic has come up before and there were a number of people who
argued that this is a false metric (or at least a misleading one) for
most people. I don't want to minimize how _you_ perceive the utility of
this metric, but "lines changed" can be a very subjective measure. For
example, if I realize that a given block of code needs to be executed
only when a specific precondition is met, I can make a very small
change, basically two lines (the leading if() and the closing brace),
yet the number of lines changed could be huge because I changed the
whitespace to offset the enclosed code.

This is why a post-commit script (which could specifically ignore
whitespace only changes) may be much more appropriate than a possibly
difficult change to the core code.

As far as knowing which files have been touched more than others, it is
pretty easy to run a verbose log and run that through a script which
increments a counter for each time a given file is changed. It's not
exactly a "one-liner" for most people, but neither would it require much
in the way of sophistication to do it. At some point, Subversion should
have a better way of walking the repository to extract this kind of meta
data (perhaps when the mythical SQL backend emerges).



John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Feb 10 18:37:43 2005

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

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