Hi. > These include word-processing files (.odts) and PDFs. When I view a > changeset containing changes to these files, the page displays the > diffs to the binaries. Is there any way to stop is behavior?
Usually this should be possible by making sure that the right MIME type is set in the repository for the according files. Sometimes there are situations where that does not help/work. One example is the repository of madwifi.org which contains uuencoded binary files - viewing diffs of these files is absolutely useless. Thus I wrote a patch for Trac 0.10.x that allows to disable viewing diffs based on the filename. The patch is available at [1] (and another one at [2] to remove the unneeded debug messages of the first patch). It introduces a new configuration option called "suppress_file_diffs" in section [changeset]. As an example, to suppress rendering the diffs of files like "something.uu" use: [changeset] ... suppress_file_diffs = *.uu To define more than one pattern use a comma to separate them. hth Bye, Mike [1] http://projects.otaku42.de/changeset/116 [2] http://projects.otaku42.de/changeset/117 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---