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