Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.4rc2, 0.4rc3, and 0.4rc4

hggtk/datamine: fix UTF-8 encoding errors

Changeset aadb7858fe11

Parent 66736cfd76fe

by TK Soh

Changes to one file · Browse files at aadb7858fe11 Showing diff from parent 66736cfd76fe Diff from another changeset...

Change 1 of 7 Show Entire File hggtk/​datamine.py Stacked
 
12
13
14
15
 
16
17
18
 
315
316
317
318
 
319
320
321
 
336
337
338
339
340
 
 
341
342
343
 
462
463
464
465
 
466
467
468
469
470
471
472
 
473
474
475
 
498
499
500
501
 
502
503
504
 
553
554
555
556
 
557
558
559
 
560
561
562
 
582
583
584
585
 
 
586
587
588
 
12
13
14
 
15
16
17
18
 
315
316
317
 
318
319
320
321
 
336
337
338
 
 
339
340
341
342
343
 
462
463
464
 
465
466
467
468
469
470
471
 
472
473
474
475
 
498
499
500
 
501
502
503
504
 
553
554
555
 
556
557
558
 
559
560
561
562
 
582
583
584
 
585
586
587
588
589
@@ -12,7 +12,7 @@
 import threading, thread2  import time  from mercurial import hg, ui, util, revlog -from hglib import hgcmd_toq +from hglib import hgcmd_toq, toutf, fromutf  from gdialog import *  from vis import treemodel  from vis.colormap import AnnotateColorMap, AnnotateColorSaturation @@ -315,7 +315,7 @@
  except ValueError:   continue   tip, user = self.get_rev_desc(long(revid)) - model.append((revid, text, tip, path)) + model.append((revid, toutf(text), tip, toutf(path)))   if thread.isAlive():   return True   else: @@ -336,8 +336,8 @@
  if path is not None and model is not None:   iter = model.get_iter(path)   self.currev = model[iter][self.COL_REVID] - self.curpath = model[iter][self.COL_PATH] - self.stbar.set_status_text(model[iter][self.COL_TOOLTIP]) + self.curpath = fromutf(model[iter][self.COL_PATH]) + self.stbar.set_status_text(toutf(model[iter][self.COL_TOOLTIP]))     def _stop_search(self, button, widget):   num = self.notebook.get_current_page() @@ -462,14 +462,14 @@
  frame.show_all()     hbox = gtk.HBox() - lbl = gtk.Label(os.path.basename(path) + '@' + revid) + lbl = gtk.Label(toutf(os.path.basename(path) + '@' + revid))   close = self.create_tab_close_button()   close.connect('clicked', self.close_page, frame)   hbox.pack_start(lbl, True, True, 2)   hbox.pack_start(close, False, False)   hbox.show_all()   num = self.notebook.append_page_menu(frame, - hbox, gtk.Label(path + '@' + revid)) + hbox, gtk.Label(toutf(path + '@' + revid)))     if hasattr(self.notebook, 'set_tab_reorderable'):   self.notebook.set_tab_reorderable(frame, True) @@ -498,7 +498,7 @@
  if info:   (rpath, node) = info   frev = self.repo.file(rpath).linkrev(node) - button.set_label('%s@%s' % (rpath, frev)) + button.set_label(toutf('%s@%s' % (rpath, frev)))   button.show()   button.set_sensitive(True)   label.set_text('Follow Rename:') @@ -553,10 +553,10 @@
    model.clear()   self.stbar.begin() - self.stbar.set_status_text('hg ' + ' '.join(args[2:])) + self.stbar.set_status_text(toutf('hg ' + ' '.join(args[2:])))     hbox = gtk.HBox() - lbl = gtk.Label(os.path.basename(path) + '@' + str(rev)) + lbl = gtk.Label(toutf(os.path.basename(path) + '@' + str(rev)))   close = self.create_tab_close_button()   close.connect('clicked', self.close_page, frame)   hbox.pack_start(lbl, True, True, 2) @@ -582,7 +582,8 @@
  tip, user = self.get_rev_desc(rowrev)   ctx = self.repo.changectx(rowrev)   color = colormap.get_color(ctx, curdate) - model.append((revid, text, tip, path.strip(), color, user)) + model.append((revid, toutf(text), tip, toutf(path.strip()), + color, toutf(user)))   if thread.isAlive():   return True   else: