Edgewall Software

Changes between Initial Version and Version 5 of Ticket #10267


Ignore:
Timestamp:
Dec 22, 2014, 7:41:55 AM (9 years ago)
Author:
Ryan J Ollos
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10267

    • Property Component generalversion control/changeset view
    • Property Priority normalhigh
    • Property Milestonenext-stable-1.0.x
    • Property Keywords diff added
    • Property Severity normalmajor
  • Ticket #10267 – Description

    initial v5  
    33Looks like the issue is in: versioncontrol/web_ui/changeset.py
    44
    5 The _content_changes method tries to do a diff of anything that isn't a binary.  This is fine for most text files, unless they are big (like even 5 to 10 megs seems a bit much for the diffing method used).  Anyway, I simply added the following to _content_changes:
     5The `_content_changes` method tries to do a diff of anything that isn't a binary.  This is fine for most text files, unless they are big (like even 5 to 10 megs seems a bit much for the diffing method used).  Anyway, I simply added the following to `_content_changes`:
    66
    7     if (len(old_content) > 100000 or len(new_content) > 100000):
    8         return None
     7{{{#!python
     8if (len(old_content) > 100000 or len(new_content) > 100000):
     9    return None
     10}}}
    911
    1012(Sorry if it isn't proper pep8)