Show More
@@ -28,7 +28,7 b' from pygments.lexers.special import Text' | |||
|
28 | 28 | |
|
29 | 29 | from rhodecode.lib.helpers import ( |
|
30 | 30 | get_lexer_for_filenode, html_escape, get_custom_lexer) |
|
31 | from rhodecode.lib.utils2 import AttributeDict | |
|
31 | from rhodecode.lib.utils2 import AttributeDict, StrictAttributeDict | |
|
32 | 32 | from rhodecode.lib.vcs.nodes import FileNode |
|
33 | 33 | from rhodecode.lib.diff_match_patch import diff_match_patch |
|
34 | 34 | from rhodecode.lib.diffs import LimitedDiffContainer |
@@ -400,7 +400,12 b' class DiffSet(object):' | |||
|
400 | 400 | for patch in patchset: |
|
401 | 401 | diffset.file_stats[patch['filename']] = patch['stats'] |
|
402 | 402 | filediff = self.render_patch(patch) |
|
403 |
filediff.diffset = |
|
|
403 | filediff.diffset = StrictAttributeDict(dict( | |
|
404 | source_ref=diffset.source_ref, | |
|
405 | target_ref=diffset.target_ref, | |
|
406 | repo_name=diffset.repo_name, | |
|
407 | source_repo_name=diffset.source_repo_name, | |
|
408 | )) | |
|
404 | 409 | diffset.files.append(filediff) |
|
405 | 410 | diffset.changed_files += 1 |
|
406 | 411 | if not patch['stats']['binary']: |
General Comments 0
You need to be logged in to leave comments.
Login now