Skip to content

Instantly share code, notes, and snippets.

@ericclemmons
Created August 12, 2009 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericclemmons/166600 to your computer and use it in GitHub Desktop.
Save ericclemmons/166600 to your computer and use it in GitHub Desktop.
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