From: Jason K. <jk...@la...> - 2009-03-16 05:34:44
|
If you wanted to take StatSVN and change the meaning of a LOC (to match that regexp), then I think it should be fairly easy to change the locations that do look the line counting. Take a look at statsvn\src\net\sf\statsvn\util\SvnDiffUtils, the parseDiff function. For your research project, it should be fairly easy to perform these line counts. During your testing, keep in mind that StatSVN keeps a LOC cache. However, if you ever want to contribute something back to StatSVN in terms of something that would be reusable for the masses, that's another story (a lot more complex). Thanks, --- Jason Kealey - jk...@la... LavaBlast Franchise Software - http://www.lavablast.com Simplifying day-to-day franchise operations On Sun, Mar 15, 2009 at 11:46 PM, Maggi Federico <fed...@gm...>wrote: > Hello List, > I am new to StatSVN and new to this list. > > Before diving into the code, I was wandering how easy it would be to > add support for a new statistic. In particular, I'd need to count LOC > that match a given regexp. > > I am going to use this feature in the context of a research project. > > Basically, we are trying to give a rough estimation of the amount of > code (modified between subsequent releases) that involve certain > functions specified in terms of regexps. > > I would call this "restricted LOC", or something like that. > Suggestions are welcome :) > > Thanks in advance for any hint. Best regards, > > -- Federico > > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Statsvn-developers mailing list > Sta...@li... > https://lists.sourceforge.net/lists/listinfo/statsvn-developers > > |