Treat file as binary?

Asked by treaves

With subversion, I could set the svn:minetype property to tell Trac not to diff a file; to treat it as a whole. This was needed as many IDE's use XML files for configuration, etc, and I do not want to see a diff for these file, ever (in Browse Source). How do I do this with trac-bzr?

Question information

Language:
English Edit question
Status:
Answered
For:
Trac-Bzr Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Martin von Gagern (gagern) said :
#1

As bzr doesn't provide any kind of mime type mappings (although there might be plugins that do so, I don't know), Trac will fall back to its own mime type inference mechanism. Parts of it can be configured using the mimeviewer section of trac.ini: http://trac.edgewall.org/wiki/TracIni#mimeviewer-section
So if the project has no xml files which should be treated as text, then adding text/xml to the treat_as_binary list should be the easiest solution.

Can you help with this problem?

Provide an answer of your own, or ask treaves for more information if necessary.

To post a message you must log in.