Changeset 6a5cf952fbc0…
Parent 0afae2efd477…
by
Changes to one file · Browse files at 6a5cf952fbc0 Showing diff from parent 0afae2efd477 Diff from another changeset...
@@ -12,6 +12,7 @@ from mercurial import cmdutil, commands, cmdutil, hg, mdiff, patch, revlog
from mercurial import util, fancyopts
import copy, cStringIO, errno, operator, os, re, shutil, tempfile
+import hglib
lines_re = re.compile(r'@@ -(\d+),(\d+) \+(\d+),(\d+) @@\s*(.*)')
@@ -103,7 +104,7 @@ str += _('this modifies a binary file (all or nothing)\n')
break
if self.pretty_re.match(h):
- str += h
+ str += hglib.toutf(h)
if self.binary():
str += _('this is a binary file\n')
break
@@ -119,7 +120,7 @@ 'selected: %d hunks (%d changed lines)</i>') % (hunks,
lines, shunks, slines)
break
- str += h
+ str += hglib.toutf(h)
return str
def pretty(self, fp):
|
Loading...