Refactored directory structure causes problems

3 messages Options
Embed this post
Permalink
RobinP

Refactored directory structure causes problems

Reply Threaded More More options
Print post
Permalink
Hi Folks,

I note that in the "limitations" section of the user manual, it says "Deleted and moved files: Lines of Code counts will be inaccurate for deleted or moved files."  Does this mean that any file that has been moved will not be included in the LOC count, File statistics etc?

I have some code where the whole directory structure has been completely refactored, and it seems that very few of my source files are being counted in the statistics.  This unfortunately makes StatSVN completely unworkable for my project, which is a shame because otherwise it would be a very useful tool.

Surely the stats for LOC and file sizes etc should be calculated based on the actual working copy instead of using the log, but I assume this is not the case?

Is there any way round this problem?

Thanks for any help,

Robin
jkealey

Re: Re factored directory structure causes problems

Reply Threaded More More options
Print post
Permalink
Actually, we start at the working copy to count the lines, and use the log
(and svn diff) to count the differences and move our way back in time. If a
file is not there anymore, I can't remember what the issue was but there
were some slight issues with the fact that we were only inferring it from
previous diffs. I'm guessing this could have been improved by running an SVN
CAT at the appropriate time. (Or this issue may have been resolved later on;
not sure)

With moved files, your stats will count them as a deletion and addition as
with StatCVS. This is still an issue in StatSVN because moving files
artificially inflates your results. The issue is open for anyone to tackle
it. I did a test a few years ago and performance was an issue.

Hope this helps,
Jason

-----Original Message-----
From: RobinP [mailto:[hidden email]]
Sent: October-29-08 8:08 AM
To: [hidden email]
Subject: [Statsvn-users] Re factored directory structure causes problems


Hi Folks,

I note that in the "limitations" section of the user manual, it says
"Deleted and moved files: Lines of Code counts will be inaccurate for
deleted or moved files."  Does this mean that any file that has been moved
will not be included in the LOC count, File statistics etc?

I have some code where the whole directory structure has been completely
refactored, and it seems that very few of my source files are being counted
in the statistics.  This unfortunately makes StatSVN completely unworkable
for my project, which is a shame because otherwise it would be a very useful
tool.

Surely the stats for LOC and file sizes etc should be calculated based on
the actual working copy instead of using the log, but I assume this is not
the case?

Is there any way round this problem?

Thanks for any help,

Robin
--
View this message in context:
http://n2.nabble.com/Refactored-directory-structure-causes-problems-tp139318
3p1393183.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
RobinP

Re: Re factored directory structure causes problems

Reply Threaded More More options
Print post
Permalink
Thanks Jason, but I think you have missed my main point which is that most of my files do not appear at all in any of the statistics.  I don't mind some of the numbers being wrong, but I did want to see an accurate LOC count, which ought not be affected by previous versions.  Anyway, I've got that now with a thing called SourceMonitor, but I'd still like to use StatSVN if this problem with moved files can be fixed.

Robin.

jkealey wrote:
Actually, we start at the working copy to count the lines, and use the log
(and svn diff) to count the differences and move our way back in time. If a
file is not there anymore, I can't remember what the issue was but there
were some slight issues with the fact that we were only inferring it from
previous diffs. I'm guessing this could have been improved by running an SVN
CAT at the appropriate time. (Or this issue may have been resolved later on;
not sure)

With moved files, your stats will count them as a deletion and addition as
with StatCVS. This is still an issue in StatSVN because moving files
artificially inflates your results. The issue is open for anyone to tackle
it. I did a test a few years ago and performance was an issue.

Hope this helps,
Jason

-----Original Message-----
From: RobinP [mailto:Robin.PELLATT@oami.europa.eu]
Sent: October-29-08 8:08 AM
To: statsvn-users@lists.sourceforge.net
Subject: [Statsvn-users] Re factored directory structure causes problems


Hi Folks,

I note that in the "limitations" section of the user manual, it says
"Deleted and moved files: Lines of Code counts will be inaccurate for
deleted or moved files."  Does this mean that any file that has been moved
will not be included in the LOC count, File statistics etc?

I have some code where the whole directory structure has been completely
refactored, and it seems that very few of my source files are being counted
in the statistics.  This unfortunately makes StatSVN completely unworkable
for my project, which is a shame because otherwise it would be a very useful
tool.

Surely the stats for LOC and file sizes etc should be calculated based on
the actual working copy instead of using the log, but I assume this is not
the case?

Is there any way round this problem?

Thanks for any help,

Robin
--
View this message in context:
http://n2.nabble.com/Refactored-directory-structure-causes-problems-tp139318
3p1393183.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
Statsvn-users@lists.sourceforge.net
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
Statsvn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/statsvn-users