Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.7, 0.7.1, and 0.7.2

hgshelve: convert fancy diff header to UTF-8 for display

fixes #17

Changeset 6a5cf952fbc0

Parent 0afae2efd477

by Steve Borho

Changes to one file · Browse files at 6a5cf952fbc0 Showing diff from parent 0afae2efd477 Diff from another changeset...

Change 1 of 3 Show Entire File hggtk/​hgshelve.py Stacked
 
12
13
14
 
15
16
17
 
103
104
105
106
 
107
108
109
 
119
120
121
122
 
123
124
125
 
12
13
14
15
16
17
18
 
104
105
106
 
107
108
109
110
 
120
121
122
 
123
124
125
126
@@ -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):