incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g..@apache.org
Subject svn commit: r1429787 - /incubator/bloodhound/trunk/trac/trac/mimeview/patch.py
Date Mon, 07 Jan 2013 13:04:57 GMT
Author: gjm
Date: Mon Jan  7 13:04:57 2013
New Revision: 1429787

URL: http://svn.apache.org/viewvc?rev=1429787&view=rev
Log:
applying [trac 11319] to fix missing diff.css ahead of taking a new vendor branch - towards
#308 (patch found by rjollos)

Modified:
    incubator/bloodhound/trunk/trac/trac/mimeview/patch.py

Modified: incubator/bloodhound/trunk/trac/trac/mimeview/patch.py
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/trac/trac/mimeview/patch.py?rev=1429787&r1=1429786&r2=1429787&view=diff
==============================================================================
--- incubator/bloodhound/trunk/trac/trac/mimeview/patch.py (original)
+++ incubator/bloodhound/trunk/trac/trac/mimeview/patch.py Mon Jan  7 13:04:57 2013
@@ -40,7 +40,7 @@ class PatchRenderer(Component):
     # IHTMLPreviewRenderer methods
 
     def get_quality_ratio(self, mimetype):
-        if mimetype == 'text/x-diff':
+        if mimetype in ('text/x-diff', 'text/x-patch'):
             return 8
         return 0
 



Mime
View raw message