You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Sung Kim <hu...@gmail.com> on 2004/06/29 16:58:33 UTC
Finding the number of line changes between revisions
Hi,
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.
Also it would be nice if svn log gives some line change info with an
option (like show number of line changes):
(Proposed)
------------------------------------------------------------------------
r14 | hunkim | 2004-06-28 23:58:16 -0700 (Mon, 28 Jun 2004) | 1 line
Changed paths:
M +12 -30 /trunk/src/edu/ucsc/cse/grase/treemap/element/Cell.java
M +30 -0 /trunk/src/edu/ucsc/cse/grase/treemap/element/TopBottomRow.java
M +2 -10 /trunk/src/edu/ucsc/cse/grase/treemap/element/TreeMap.java
Added Bugzilla Parsing module
------------------------------------------------------------------------
r13 | hunkim | 2004-06-28 15:07:38 -0700 (Mon, 28 Jun 2004) | 1 line
Changed paths:
M +2 -30 /trunk/src/edu/ucsc/cse/grase/treemap/element/TopBottomCell.java
M +40 -1 /trunk/src/edu/ucsc/cse/grase/treemap/element/TopBottomRow.java
Added option selection such as show text, order by
------------------------------------------------------------------------
(Current)
------------------------------------------------------------------------
r14 | hunkim | 2004-06-28 23:58:16 -0700 (Mon, 28 Jun 2004) | 1 line
Changed paths:
M /trunk/src/edu/ucsc/cse/grase/treemap/element/Cell.java
M /trunk/src/edu/ucsc/cse/grase/treemap/element/TopBottomRow.java
M /trunk/src/edu/ucsc/cse/grase/treemap/element/TreeMap.java
Added Bugzilla Parsing module
------------------------------------------------------------------------
r13 | hunkim | 2004-06-28 15:07:38 -0700 (Mon, 28 Jun 2004) | 1 line
Changed paths:
M /trunk/src/edu/ucsc/cse/grase/treemap/element/TopBottomCell.java
M /trunk/src/edu/ucsc/cse/grase/treemap/element/TopBottomRow.java
Added option selection such as show text, order by
------------------------------------------------------------------------
Sung
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Finding the number of line changes between revisions
Posted by Max Bowsher <ma...@ukf.net>.
Sung Kim wrote:
> Thanks.
>
> Than what is the a good change measurement in Subversion?
> Or does Subversion provides any change measurement?
Just "svn diff".
Max.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Finding the number of line changes between revisions
Posted by Chia-liang Kao <cl...@clkao.org>.
It's quite easy to do what you want with external tools.
I often use svk desc <REV> | diffstat
svn diff -r <REV-1>:<REV> <URL> | diffstat should give you the same thing.
Cheers,
CLK
On Tue, Jun 29, 2004 at 10:55:36AM -0700, Sung Kim wrote:
> Than what is the a good change measurement in Subversion?
> Or does Subversion provides any change measurement?
> On Tue, 29 Jun 2004 18:29:06 +0100, Max Bowsher <ma...@ukf.net> wrote:
> >
> > Sung Kim wrote:
> > > Hi,
> > >
> > > 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.
> > >
> > > Also it would be nice if svn log gives some line change info with an
> > > option (like show number of line changes):
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Finding the number of line changes between revisions
Posted by Sung Kim <hu...@gmail.com>.
Thanks.
Than what is the a good change measurement in Subversion?
Or does Subversion provides any change measurement?
Sung
On Tue, 29 Jun 2004 18:29:06 +0100, Max Bowsher <ma...@ukf.net> wrote:
>
> Sung Kim wrote:
> > Hi,
> >
> > 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.
> >
> > Also it would be nice if svn log gives some line change info with an
> > option (like show number of line changes):
>
> Unlike cvs, svn does not use a line-based diff format.
>
> Therefore, unless line change counts are stored as extra change metadata in the repository, it is impossible to do what you suggest.
>
> Max.
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Finding the number of line changes between revisions
Posted by Max Bowsher <ma...@ukf.net>.
Sung Kim wrote:
> Hi,
>
> 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.
>
> Also it would be nice if svn log gives some line change info with an
> option (like show number of line changes):
Unlike cvs, svn does not use a line-based diff format.
Therefore, unless line change counts are stored as extra change metadata in the repository, it is impossible to do what you suggest.
Max.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Finding the number of line changes between revisions
Posted by Justin Erenkrantz <ju...@erenkrantz.com>.
--On Tuesday, June 29, 2004 9:58 AM -0700 Sung Kim <hu...@gmail.com>
wrote:
> 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