|
|
|
rtp_130
|
Hello,
I have been playing around with statsvn on our repositories for a few weeks now and this is a great tool! Thanks for all the effort in turning statcvs into a more then viable tool for subversion repository monitoring. I am having some trouble with trying to run statsvn on a branch. My subversion structure is fairly standard: svn/ /trunk /branches /branchA /branchB /branchC /tags /tagA Now I can generate statsvn results for my trunk no problem. I can also generate results for all branches i.e., run statsvn on the branches level. However, when I try to run statsvn on the branchA level I run into problems. Note that I am generating my log file a the svn/ level from the repository: svn log -v --xml http://bby-svn:3691/svn > svn.log Here is the problem that I am seeing when trying to run on branchA % java -jar /cvsadmin/svn_server/current/httpd/data/htdocs/svn-stats/svn/statpmc.jar -cache-dir .statsvn svn.log ../ Jun 29, 2009 7:36:42 AM net.sf.statsvn.util.JavaUtilTaskLogger info INFO: StatSVN - SVN statistics generation Parsing SVN log 'svn.log' exclude pattern 'null' Cache: org.xml.sax.SAXParseException: Premature end of file. Scheduled 0 /tools/bin/svn diff calls on 0 threads. Generating report for /PM21_85_03_01/branches/PM73208_01_HP_Barrett into Using default CSS file (objectlab-statcvs.css) The repository object is not valid. Please check your settings. Is the log file empty? Do you run from a checked out directory? Do you have non-committed items? Any ideas what I might be doing wrong here? thanks for your time, -reagan ------------------------------------------------------------------------------ _______________________________________________ Statsvn-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/statsvn-users |
||||||||||||||||
|
Jason Kealey-2
|
(I forgot to CC the list)
2) Therefore it points to something like /tmp/svncheckout/branchA/ and you are running in /tmp/svncheckout/branchA/stats ?
3) Try generating the logfile for the branchA only. svn log -v --xml http://bby-svn:3691/svn/branchA > svn.log
Also, try running with -debug to get more information. I'm pretty sure we support this scenario. I think I had one instance running somewhere like this a year ago, but I am not 100% sure. This type of error is usually due to command line parameter issues but I don't know exactly in which direction to point you.
PS: Using the same cache-dir for all projects would make it run faster on the branch if you are already running on the root. Thanks, --- Jason Kealey - [hidden email] LavaBlast Franchise Software - http://www.lavablast.com Simplifying day-to-day franchise operations On Mon, Jun 29, 2009 at 1:15 PM, Reagan Penner <[hidden email]> wrote: Hi Jason, ------------------------------------------------------------------------------ _______________________________________________ Statsvn-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/statsvn-users |
||||||||||||||||
|
rtp_130
|
OK I have figured this out.
I have a script that traverses through all of our branches running stats on each one. I saw this error and emmideately started debugging however, when I took a look at the log file I finally realized that this branch was created but never used i.e., no edits. I went on to our next branch, which has edits, and the tool runs fine on this branch. The tool is working fine, I would suggest that statsvn possibly report that the log file has no parse-able data rather then it is empty. thanks again for all the assistance, I really like this tool! -reagan Jason Kealey wrote: > (I forgot to CC the list) > > 1) Are you using -cache-dir . or -cache-dir .statsvn ? (Inconsistency > with previous post) Cache: org.xml.sax.SAXParseException: Premature > end of file. implies a problem with the cache directory. > 2) Therefore it points to something like /tmp/svncheckout/branchA/ and > you are running in /tmp/svncheckout/branchA/stats ? > 3) Try generating the logfile for the branchA only. svn log -v > --xml http://bby-svn:3691/svn/branchA > svn.log > > Also, try running with -debug to get more information. > > I'm pretty sure we support this scenario. I think I had one instance > running somewhere like this a year ago, but I am not 100% sure. This > type of error is usually due to command line parameter issues but I > don't know exactly in which direction to point you. > > PS: Using the same cache-dir for all projects would make it run faster > on the branch if you are already running on the root. > > Thanks, > --- > Jason Kealey - [hidden email] <mailto:[hidden email]> > LavaBlast Franchise Software - http://www.lavablast.com > Simplifying day-to-day franchise operations > > > On Mon, Jun 29, 2009 at 1:15 PM, Reagan Penner > <[hidden email] <mailto:[hidden email]>> > wrote: > > Hi Jason, > > Thanks for the quick response. > > 1) I create a stats folder in each workspace that I analyze, in > their is where I run statsvn and store my cached results which is > why -cache-dir . is being used. > 2) ../ is the correct branch i.e., branchA in this case > 3) the log file is definitely not empty > > More debugging on my end shows that if I run statsvn from the > branches level I can generate results for all branches but I > CANNOT run it at a specific branch without errors. Note I am > generating my log file from the top-level always. > > Current errors are: > > > The repository object is not valid. Please check your settings. > Is the log file empty? Do you run from a checked out directory? Do > you have non-committed items? > > Have you been able to run the tool on a specific branch? > > Please note I am using statsvn-0.5.0 on Linux. > > cheers, > -reagan > > Jason Kealey wrote: > > You are probably experiencing a problem with the StatSVN > arguments. > 1) -cache-dir : you specified it for the trunk but are you > pointing to an incorrect folder when running your branch? Are > the read&write permissions good? (you can probably point it to > the same location as the cache-dir for the trunk). 2) the last > argument is the check out directory. is ../ the correct > location for the branchA root? > 3) the log file: is it empty when you run it on the branch > only? (you may be able to use the same top level log even > when you specify a branch) > > You may have to play with a few of the above to make it work. > Thanks, > --- > Jason Kealey - [hidden email] > <mailto:[hidden email]> <mailto:[hidden email] > <mailto:[hidden email]>> > > LavaBlast Franchise Software - http://www.lavablast.com > Simplifying day-to-day franchise operations > > > On Mon, Jun 29, 2009 at 10:41 AM, Reagan Penner > <[hidden email] > <mailto:[hidden email]> > <mailto:[hidden email] > <mailto:[hidden email]>>> wrote: > > Hello, > > I have been playing around with statsvn on our repositories > for a few > weeks now and this is a great tool! Thanks for all the > effort in > turning > statcvs into a more then viable tool for subversion repository > monitoring. > > I am having some trouble with trying to run statsvn on a > branch. > > My subversion structure is fairly standard: > > svn/ > /trunk > /branches > /branchA > /branchB > /branchC > /tags > /tagA > > Now I can generate statsvn results for my trunk no problem. > I can also > generate results for all branches i.e., run statsvn on the > branches > level. However, when I try to run statsvn on the branchA > level I run > into problems. > > Note that I am generating my log file a the svn/ level from the > repository: > svn log -v --xml http://bby-svn:3691/svn > svn.log > > Here is the problem that I am seeing when trying to run on > branchA > > % java -jar > > /cvsadmin/svn_server/current/httpd/data/htdocs/svn-stats/svn/statpmc.jar > -cache-dir .statsvn svn.log ../ > Jun 29, 2009 7:36:42 AM > net.sf.statsvn.util.JavaUtilTaskLogger info > INFO: StatSVN - SVN statistics generation > > Parsing SVN log 'svn.log' exclude pattern 'null' > Cache: org.xml.sax.SAXParseException: Premature end of file. > Scheduled 0 /tools/bin/svn diff calls on 0 threads. > Generating report for > /PM21_85_03_01/branches/PM73208_01_HP_Barrett into > Using default CSS file (objectlab-statcvs.css) > The repository object is not valid. Please check your settings. > Is the log file empty? Do you run from a checked out > directory? Do you > have non-committed items? > > Any ideas what I might be doing wrong here? > > thanks for your time, > -reagan > > > ------------------------------------------------------------------------------ > _______________________________________________ > Statsvn-users mailing list > [hidden email] > <mailto:[hidden email]> > <mailto:[hidden email] > <mailto:[hidden email]>> > > https://lists.sourceforge.net/lists/listinfo/statsvn-users > > > ------------------------------------------------------------------------------ _______________________________________________ Statsvn-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/statsvn-users |
||||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |