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

Re: Finding the number of line changes between revisions

From: Justin Erenkrantz <justin_at_erenkrantz.com>
Date: 2004-07-02 07:22:24 CEST

--On Tuesday, June 29, 2004 9:58 AM -0700 Sung Kim <hunkims@gmail.com>

> Is there any way to figure out the number of line changes between two
> revisions or two files in reivisions without running svn diff? I just
> want to know the number of line changes between two revisions, and
> running diff seems too expensive for that.

As has been mentioned, not really in the manner you want as SVN uses
byte-oriented diffs not line-oriented diffs.

However, the thing I've often thought about doing (when people around here
complain that CVS is better than Subversion in this regard) is caching the
blame info - as it has the line informations as a byproduct of computing
the blame. It'd be possible to leverage that information to retrieve the
metrics I think you're after. Yet, I haven't done more than think about it
at this point. Perhaps that'll point you in the right direction. -- justin

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jul 2 07:24:10 2004

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.