Show More
@@ -44,6 +44,7 b' from rhodecode.lib.vcs.nodes import File' | |||
|
44 | 44 | from rhodecode.lib.vcs.backends.base import EmptyChangeset |
|
45 | 45 | from rhodecode.lib.helpers import escape |
|
46 | 46 | from rhodecode.lib.utils import make_ui |
|
47 | from rhodecode.lib.utils2 import safe_unicode | |
|
47 | 48 | |
|
48 | 49 | |
|
49 | 50 | def wrap_to_table(str_): |
@@ -214,7 +215,7 b' class DiffProcessor(object):' | |||
|
214 | 215 | self.adds += 1 |
|
215 | 216 | elif l.startswith('-') and not l.startswith('---'): |
|
216 | 217 | self.removes += 1 |
|
217 |
return l |
|
|
218 | return safe_unicode(l) | |
|
218 | 219 | |
|
219 | 220 | output = list(diffiterator) |
|
220 | 221 | size = len(output) |
@@ -13,6 +13,7 b' from mercurial.match import match' | |||
|
13 | 13 | |
|
14 | 14 | from rhodecode.lib.vcs.exceptions import VCSError |
|
15 | 15 | from rhodecode.lib.vcs.nodes import FileNode, NodeError |
|
16 | from rhodecode.lib.vcs.utils import safe_unicode | |
|
16 | 17 | |
|
17 | 18 | |
|
18 | 19 | def get_udiff(filenode_old, filenode_new, show_whitespace=True): |
@@ -149,7 +150,7 b' class DiffProcessor(object):' | |||
|
149 | 150 | self.adds += 1 |
|
150 | 151 | elif l.startswith('-') and not l.startswith('---'): |
|
151 | 152 | self.removes += 1 |
|
152 |
return l |
|
|
153 | return safe_unicode(l) | |
|
153 | 154 | |
|
154 | 155 | output = list(diffiterator) |
|
155 | 156 | size = len(output) |
General Comments 0
You need to be logged in to leave comments.
Login now