Edgewall Software
Modify

Opened 16 years ago

Last modified 9 years ago

#6638 new enhancement

Allow file exclusions in diffs

Reported by: anonymous@… Owned by:
Priority: normal Milestone: next-major-releases
Component: version control/changeset view Version:
Severity: normal Keywords: bitesized performance
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Trac should allow us to set file types (by extension) that should not be diff-ed. A lot of large auto generated xml-based files are showing up in changesets and they really hurt performance and make Trac difficult to use.

Attachments (0)

Change History (6)

comment:1 by Emmanuel Blot, 16 years ago

Priority: highnormal
Severity: majornormal
Type: defectenhancement

Note that has an (incomplete) workaround, you can prevent Trac from generation large diff with an option in trac.ini, using the number of files and/or the size of the diff, see TracIni#changeset-section.

The filtering should be based on the file MIME type rather than the file extension BTW.

comment:2 by Remy Blank, 16 years ago

Milestone: 0.13
Owner: changed from Christian Boos to Remy Blank

I see that this could be useful. I'll see what I can do.

comment:3 by Remy Blank, 16 years ago

#7304 was closed as a duplicate. It suggested ignoring files by a list of glob patterns, and not to use the list when a single file is diffed.

comment:4 by Remy Blank, 12 years ago

Keywords: bitesized added
Owner: Remy Blank removed

Refocusing.

comment:5 by ilewismsl, 9 years ago

While not ideal, because it would be useful to restrict diffs, while still allowing view of a mime type, the trac.ini [mimeview] treat_as_binary key provides a partial workaround for this issue (see also #2672).

By adding a mime type to the treat_as_binary list, you can get Trac to treat the file type as binary. With that change, Trac will not attempt to diff the file type. The drawback is that it also will not display the file type in the browser any more.

comment:6 by figaro, 9 years ago

Keywords: performance added

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.