Switch to side-by-side view
--- a/Allura/allura/controllers/repository.py +++ b/Allura/allura/controllers/repository.py @@ -557,12 +557,10 @@ for mime in not_binary_mime: if mime in utils.guess_mime_type(filename): diff = ''.join(difflib.unified_diff( - la, lb, - ('a' + apath).encode('utf-8'), - ('b' + b.path()).encode('utf-8'))) - - - + la, lb, + ('a' + apath).encode('utf-8'), + ('b' + b.path()).encode('utf-8'))) + return dict( a=a, b=b, diff=diff)