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

Re: git log vs. svn log

From: Mattias Engdegård <mattias_at_virtutech.se>
Date: 2007-09-05 21:20:28 CEST

shd@jolt.modeemi.cs.tut.fi (Heikki Orsila) writes:

> pmr.1 | 16 ++++++++++++++--
> pmr.c | 15 +++++++++++++--
> 2 files changed, 27 insertions(+), 4 deletions(-)

I wanted this information (added and removed lines) as well, so I wrote
a script to calculate it as a post-commit hook and save the information
in a revprop. This works well, but:

* Counting the +/- lines of the svn diff output takes care of most cases, but
  files in deleted directories will not show up at all so they have to be
  counted explicitly.

* In svn diff, copies will count as additions, even if nothing was changed.
  It is also usually not very interesting, especially for whole-tree copies.
  I treat tags and branches specially using path name heuristics.

For bigger changes this can take quite some time.
Perhaps the svn client could do a better job, but it is not obvious how.

Script available on request. I could submit it to contrib/, but I'm not sure
it is clean or general enough.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Sep 5 21:17:49 2007

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