« .htaccess Tips and Tricks | Main | Setting Environment Paths With paths.inc.php »

March 26, 2009

Python script for producing svn diffs


import os

my_file = open('changed_files.txt','r')

lines = my_file.readlines()

for line in lines:

  plode = line.strip()

  els = plode.split('/')
    
  os.popen("svn diff -r 455 " + line.strip() + " > " + "_".join(els) + ".diff")

  print "svn diff -r 455 " + line.strip() + " > " + els[-1] + ".diff"


Tags: Python , Version Control

Posted by pj at March 26, 2009 09:31 PM

Comments