1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
f = File.open("line_counts.txt", "w") (1..1334).each do |rev| system("svn update -r ") system("rake stats | grep Total > total_line.txt") line = File.readlines("total_line.txt").first count = line.split("|")[2].strip.to_i puts "Revision had " f.puts " " end puts "Done!" |