From: Alex5 <ale...@mi...> - 2008-11-25 10:49:12
|
Hello Jason Kealey, I am able to reproduce the problem with a minimal repository. - Create a new svn repository - Add the directories sub/dir and a file sub/dir/main.cpp containing 2 lines and commit the added files - if I generate the statistics on the repository now by calling the following commands, I get the empty log error (maybe this is a fringe case - head revision 0): svn.exe log "%SVNREPOSITORY%" --xml -v > \Temp\svn.log svn.exe co "%SVNREPOSITORY%" "\Temp\LocalSVNRepoCopy" java -jar statsvn.jar -include "**\*.cpp" "\Temp\svn.log" "\Temp\LocalSVNRepoCopy" - Now I add a third line to the main.cpp file and commit the change - the statsvn statistics now does not output any warnings and correctly identifies the three LOC of the project. index.html shows the following information now: Generated: 2008-11-25 11:21 Head revision: 1 Report Period: 2008-11-25 to 2008-11-25 Total Files: 1 Total Lines of Code: 3 Developers: 1 Directories [root] (0 files, 0 lines) sub (0 files, 0 lines) dir (1 files, 3 lines) - Now I move the directory dir directory out of the sub directory into the root directory of the repository and commit the change. - statSVN now does not report any warnings but outputs the current LOC to be 0! index.html shows the following information: Generated: 2008-11-25 11:43 Head revision: 2 Report Period: 2008-11-25 to 2008-11-25 Total Files: 0 Total Lines of Code: 0 Developers: 1 Directories [root] (0 files, 0 lines) sub (0 files, 0 lines) dir (0 files, 0 lines) Maybe it has something to do with the fact, that the moved directory is not renamed or is moved between different directory hierachy levels. Best regards Alex Jason Kealey-2 wrote: > > 1 - The log has always behaved that way, and it is good to confirm that > what > we are trying to monitor is in there. The app should infer the contents of > the directory when it is moved from previous log entries and the current > file system in that folder. I do believe there are limitations when > content > of the new folder is deleted after the move, but this doesn`t seem to be > your case. > 2 - If you excluded the old directory only, I was curious to see if this > changed anything, but I guess not. > > At this point, you can try using the -dump option to figure out what data > we > are picking up, but I don't have any suggestions as to why it is behaving > this way. It does appear you have hit a fringe case (bug or limitation), > but > what I've seen up to date, your scenario should be supported so there must > be something else at play. > > If you can figure out how to repro it using a tiny shareable repository, > that could be great. > Jason > > > > > On Mon, Nov 24, 2008 at 2:44 AM, Alex5 < > ale...@mi...> wrote: > >> >> Hello Jason Kealey, >> >> the svn log (svn 1.5.4) does not contain the files of the moved folder, >> that >> have not been changed since the move operation. The log only contains the >> moved directory: >> >> <logentry >> revision="1234"> >> <author>abc</author> >> <date>2008-11-13T08:54:25.978873Z</date> >> <paths> >> <path >> action="D">/trunk/sub/movedDir/src</path> >> <path >> copyfrom-path="/trunk/sub/movedDir/include" >> copyfrom-rev="1233" >> action="A">/trunk/movedDir/include</path> >> <path >> copyfrom-path="/trunk/sub/movedDir/src" >> copyfrom-rev="1233" >> action="A">/trunk/movedDir/src</path> >> <path >> action="D">/trunk/sub/movedDir/include</path> >> </paths> >> <msg>Move the movedDir directory</msg> >> </logentry> >> >> If I exclude the moved directory (old and new position) I get the correct >> svn statistics for my repository excluding the moved directory. Actually >> the >> moved directory is the part of the repository I am mostly interested at >> :-). >> >> Best regards >> >> Alex >> >> >> >> Jason Kealey-2 wrote: >> > >> > Two questions: >> > 1 - Does your svn log contain entries for these files after move. >> > 2 - what if you run statsvn with an exclude for only that folder, do >> you >> > get >> > some data? >> > >> > >> > Thanks, >> > -- >> > Jason Kealey - jk...@la... >> > LavaBlast Franchise Software - http://www.lavablast.com >> > Simplifying day-to-day franchise operations >> > >> > On Fri, Nov 21, 2008 at 6:34 AM, Alex5 < >> > ale...@mi...> wrote: >> > >> >> >> >> Hi, >> >> >> >> I am trying to use StatSVN on a repository containing a moved >> directory. >> >> In >> >> this forum I have read several times that StatSVN would handle those >> >> moved >> >> files like deleted and afterwards added files. This behavior would be >> >> sufficient for me at the moment. But I am seeing the following >> behavior: >> >> >> >> Files that have not been modified after the directory move operation >> do >> >> not >> >> appear on the directories statistics main page (index.html) and they >> are >> >> also not included in the current LOC count. >> >> >> >> The local copy of the repository is the same version, the svn log was >> >> created from. >> >> >> >> Do you have any ideas on how to solve my problems and getting correct >> >> statistic information? >> >> >> >> Best regards >> >> >> >> Alex >> >> >> >> >> >> >> >> -- >> >> View this message in context: >> >> >> http://n2.nabble.com/StatSVN-does-not-count-the-LOC-of-Files-contained-in-a-moved-directory-tp1561385p1561385.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 >> >> Sta...@li... >> >> 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 >> > Sta...@li... >> > https://lists.sourceforge.net/lists/listinfo/statsvn-users >> > >> > >> >> -- >> View this message in context: >> http://n2.nabble.com/StatSVN-does-not-count-the-LOC-of-Files-contained-in-a-moved-directory-tp1561385p1571239.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 >> Sta...@li... >> https://lists.sourceforge.net/lists/listinfo/statsvn-users >> >> > > > -- > Jason Kealey - jk...@la... > LavaBlast Franchise Software - http://www.lavablast.com > Simplifying day-to-day franchise operations > > ------------------------------------------------------------------------- > 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 > Sta...@li... > https://lists.sourceforge.net/lists/listinfo/statsvn-users > > -- View this message in context: http://n2.nabble.com/StatSVN-does-not-count-the-LOC-of-Files-contained-in-a-moved-directory-tp1561385p1575848.html Sent from the StatSVN Users mailing list archive at Nabble.com. |