Skip to content

Instantly share code, notes, and snippets.

@ericclemmons
Created Aug 12, 2009
Embed
What would you like to do?
Run "svndiff" and view the results in FileMerge (OS X)
#!/usr/bin/python
from sys import argv
from os import execlp
import re
left = "";
right = "";
argv.pop(0)
while argv:
arg = argv.pop(0)
if arg == "-u":
pass
elif arg == "-L":
argv.pop(0)
elif left == "":
left = arg
else:
right = arg
execlp("opendiff", "opendiff", left, right)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment