svn diff > ~/fix_ugly_bug.diff In the root of your application now run: patch -p0 -i ~/fix_ugly_bug.diff