Show More
@@ -59,8 +59,14 b' class FeedController(BaseRepoController)' | |||
|
59 | 59 | |
|
60 | 60 | def __changes(self, cs): |
|
61 | 61 | changes = [] |
|
62 | ||
|
63 | diffprocessor = DiffProcessor(cs.diff()) | |
|
62 | _diff = cs.diff() | |
|
63 | # we need to protect from parsing huge diffs here other way | |
|
64 | # we can kill the server, 32*1024 chars is a reasonable limit | |
|
65 | HUGE_DIFF = 32 * 1024 | |
|
66 | if len(_diff) > HUGE_DIFF: | |
|
67 | changes = ['\n ' + _('Changeset was too big and was cut off...')] | |
|
68 | return changes | |
|
69 | diffprocessor = DiffProcessor(_diff) | |
|
64 | 70 | stats = diffprocessor.prepare(inline_diff=False) |
|
65 | 71 | for st in stats: |
|
66 | 72 | st.update({'added': st['stats'][0], |
General Comments 0
You need to be logged in to leave comments.
Login now