statistics between revisions

6 messages Options
Embed this post
Permalink
Giannis

statistics between revisions

Reply Threaded More More options
Print post
Permalink
Hello,

I am using the following syntax to get statistics for revisions e.g. 15866 up to 15887:

svn log -v --xml -r 15866:15887 > logfile.log
java -jar "C:\Program Files\Subversion\statsvn-0.4.1\statsvn.jar" logfile.log <checked-out-module>

and for some of the files I get messages like:

Revision of xx/yy/zz/ww/File.java does not match expected revision

The statistics are generated at the end, but unfortunately there seems to be several errors, e.g.

user1 2008-09-05 16:10
Rev.: 15882
Minor update
1 lines of code changed in 2 files:
xx/yy/zz/ww: File.java (new)

-> Which is the second file? Actually there isn't one if you check SVN history.
-> Why File.java is shown as (new) although this is a very old file that actually was also changed in the previous revision 15881?

user1 2008-09-05 16:09
Rev.: 15881
Some comment
2 lines of code changed in 1 file:
xx/yy/zz/ww: File.java (+2 -2)

Any idea is welcome ...

Thank you,
Giannis
jkealey

Re: statistics between revisions

Reply Threaded More More options
Print post
Permalink
Hey Giannis,

What you are trying to accomplish is not a directly supported scenario in
StatSVN.

1) You need to ensure you working copy is currently at 15887.
2) If you executed StatSVN in the past, maybe the cached line counts will
come into play.
3) StatSVN will assume that all files are newly created on 15866.
4) Some weirdnesses (as below) are not surprising, especially if your
current working copy is not at 15887

Thanks,

---
Jason Kealey - [hidden email]
LavaBlast Franchise Software - http://www.lavablast.com
Simplifying day-to-day franchise operations


-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Giannis
Sent: September-11-08 5:54 AM
To: [hidden email]
Subject: [Statsvn-users] statistics between revisions


Hello,

I am using the following syntax to get statistics for revisions e.g. 15866
up to 15887:

svn log -v --xml -r 15866:15887 > logfile.log
java -jar "C:\Program Files\Subversion\statsvn-0.4.1\statsvn.jar"
logfile.log <checked-out-module>

and for some of the files I get messages like:

Revision of xx/yy/zz/ww/File.java does not match expected revision

The statistics are generated at the end, but unfortunately there seems to be
several errors, e.g.

user1 2008-09-05 16:10
Rev.: 15882
Minor update
1 lines of code changed in 2 files:
xx/yy/zz/ww: File.java (new)

-> Which is the second file? Actually there isn't one if you check SVN
history.
-> Why File.java is shown as (new) although this is a very old file that
actually was also changed in the previous revision 15881?

user1 2008-09-05 16:09
Rev.: 15881
Some comment
2 lines of code changed in 1 file:
xx/yy/zz/ww: File.java (+2 -2)

Any idea is welcome ...

Thank you,
Giannis

--
View this message in context:
http://n2.nabble.com/statistics-between-revisions-tp1082347p1082347.html
Sent from the StatSVN Users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Statsvn-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/statsvn-users


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Statsvn-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/statsvn-users
Giannis

Re: statistics between revisions

Reply Threaded More More options
Print post
Permalink
Jason,

Thank you for you answer.
Indeed the checked-out copy was not on 15887.
However now that it is on 15887 I still get exactly the same problems.
I am running StatSVN on Windows; I haven't used an cache files.
Any other ideas?
I am wondering if it would work with dates, e.g. svn log -v --xml -r {2007-02-19}:{2007-02-12} > log.xml, but I doubt.

Thank you,
Giannis
jkealey

Re: statistics between revisions

Reply Threaded More More options
Print post
Permalink
Giannis,

The cache files are generated automatically (saved in your home
directory/.statsvn/) and they might be affecting your stats, but not
necessarily.

It is possible to run it on a date range
(http://jbrugge.com/blog/2007/02/27/using-date-ranges-with-statsvn/).

Good luck,
Jason

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Giannis
Sent: September-16-08 1:58 PM
To: [hidden email]
Subject: Re: [Statsvn-users] statistics between revisions


Jason,

Thank you for you answer.
Indeed the checked-out copy was not on 15887.
However now that it is on 15887 I still get exactly the same problems.
I am running StatSVN on Windows; I haven't used an cache files.
Any other ideas?
I am wondering if it would work with dates, e.g. svn log -v --xml -r
{2007-02-19}:{2007-02-12} > log.xml, but I doubt.

Thank you,
Giannis

--
View this message in context:
http://n2.nabble.com/statistics-between-revisions-tp1082347p1093354.html
Sent from the StatSVN Users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Statsvn-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/statsvn-users


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Statsvn-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/statsvn-users
Giannis

Re: statistics between revisions

Reply Threaded More More options
Print post
Permalink
Jason,

Thanks for the tips.
I cleaned up the .statsvn folder, I did a fresh checkout, I tried with dates, but no luck :(
In every case I still get the following error for the *same* group of files:
Revision of xx/yy/zz/ww/File.java does not match expected revision
The interesting thing is that with every combination that I tried (between revisions a and b, a and c where c was used just for tagging, dates d1 and d2 where d1 and d2 match revisions a and b (or c) respectively, etc.) I always got different results for the "Lines of Code" column, the Author Activity graph and of course the commit log for each user (I also encountered the new keyword "(changed)"!). On the other hand, the "Changes" column remained the same in every case which makes sense.
I give up for now; if you or somebody else can think of something please let me know.

Thank you,
Giannis
Giannis

Re: statistics between revisions

Reply Threaded More More options
Print post
Permalink
test; please ignore