Skip to content

Instantly share code, notes, and snippets.

View mmainguy's full-sized avatar

Michael Mainguy mmainguy

View GitHub Profile
@mmainguy
mmainguy / svndata.rb
Created May 31, 2011 15:45
dump svn commits to a csv file with user, date, comment
require 'rexml/document'
require 'date'
include REXML
start = open("|tail -n1 stats.csv").read
start = start.split(',')[1]
start_date = Date.parse(start).next
file = open("|svn -r {#{start_date}T00:00:00}:HEAD --xml -v log http://some.svn.repo/project")
doc = Document.new(file)
def clean(ele)