Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Echelon9 on March 13, 2010, 12:30:48 am

Title: Charting the development of the fs2_open codebase
Post by: Echelon9 on March 13, 2010, 12:30:48 am
As many will know, the developers of the Freespace 2 Open SCP use Subversion (SVN) (http://subversion.apache.org/) to collaboratively write, review and update the source code. Subversion lets us track changes in files, make temporary branches and see recent changes to files - amongst a host of other benefits which source code version control tools provide.

Every time a SCP developer makes a change to one or more related changes to files, we "commit" it to the central version, and of course SVN keeps track of this data.

Over the weekend, I got around to analysing the aggregate SVN change date with the open source R Project for Statistical Computing (http://www.r-project.org/). R is a powerful scripted statistical tool, and lets us quickly and easily analyse big datasets for trends.

I used R - following some excellent presentations by Dirk Eddelbuettel (http://dirk.eddelbuettel.com/bio/presentations.html) - to produce a summary of the number of commits each Freespace 2 Open developer made to our fs2_open Subversion repository.

Please keep in mind that the pure number of SVN commits doesn't measure the 'contribution' coders make, that's not what I'm trying to show with this graph

(http://members.iinet.net.au/~tjkidd/fs2open/fs2_open.png)

The R code to create this, so that anyone can rerun the analysis is below:
Code: [Select]
system("svn log > fs2_open.svnlog")

x <- readLines("fs2_open.svnlog")
rx <- x[grep("^r[0-9]{1,5} \\|",x)]
who <- gsub(" ","",sapply(strsplit(rx,"\\|"),"[",2))
ctab <- table(who)
dotplot(ctab[order(ctab)],scales=list(x=list()), xlab="", main="Number of fs2_open SVN commits Jan 2007 to Mar 2010")
Title: Re: Charting the development of the fs2_open codebase
Post by: Mongoose on March 13, 2010, 02:18:37 am
Independent variable...on vertical axis...*twitch* :p
Title: Re: Charting the development of the fs2_open codebase
Post by: General Battuta on March 13, 2010, 02:19:26 am
It does make sense though, given that it's hard to read names when they're positioned vertically, and there's a lot more of them.
Title: Re: Charting the development of the fs2_open codebase
Post by: castor on March 13, 2010, 03:53:37 am
You can produce some nice graphs with Tortoise SVN too.
Title: Re: Charting the development of the fs2_open codebase
Post by: chief1983 on March 13, 2010, 12:25:24 pm
I'm curious to see just the last year and a half.  I've only really been involved with the SCP that long :)
Title: Re: Charting the development of the fs2_open codebase
Post by: taylor on March 13, 2010, 01:33:06 pm
I'm curious how I managed to get nearly 200 commits considering that I was inactive for most of that time period.  :wtf:
Title: Re: Charting the development of the fs2_open codebase
Post by: chief1983 on March 15, 2010, 10:01:36 am
Something actually seems off about this data, as I'm pretty sure that for the last three years there's been more commits than that chart comes close to accounting for.  Just feels like that anyway.
Title: Re: Charting the development of the fs2_open codebase
Post by: Inquisitor on March 15, 2010, 06:15:55 pm
When did we convert to SVN on this new server?
Title: Re: Charting the development of the fs2_open codebase
Post by: Goober5000 on March 15, 2010, 06:37:41 pm
The move from warpcore to icculus and the conversion from CVS to SVN were essentially simultaneous.
Title: Re: Charting the development of the fs2_open codebase
Post by: Inquisitor on March 15, 2010, 07:03:42 pm
I am old and senile, I cannot be expected to remember these things :)
Title: Re: Charting the development of the fs2_open codebase
Post by: Bobboau on March 16, 2010, 01:23:00 pm
damn this starts right about the time I quit.
Title: Re: Charting the development of the fs2_open codebase
Post by: Echelon9 on March 22, 2010, 03:34:43 pm
And FS2_Open got featured on a R-specifc blog at REvolution Computing (http://blog.revolution-computing.com/2010/03/charting-svn-commits-with-r.html)!
Title: Re: Charting the development of the fs2_open codebase
Post by: Mongoose on March 22, 2010, 03:45:11 pm
Holy crap, my inane comment got quoted. :lol:
Title: Re: Charting the development of the fs2_open codebase
Post by: FreeSpaceFreak on March 22, 2010, 06:02:30 pm
The Freespace 2 Sauce Code Project?

:D
Title: Re: Charting the development of the fs2_open codebase
Post by: chief1983 on March 22, 2010, 09:41:33 pm
That's not too far off from the truth.

how_much_of_that_good_wing_sauce_to_add  :)