Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

settings: fix encoding of extension tooltips

Changeset 4ac30c1c12ce

Parent 9c31ddebf494

by Yuya Nishihara

Changes to one file · Browse files at 4ac30c1c12ce Showing diff from parent 9c31ddebf494 Diff from another changeset...

 
808
809
810
811
 
812
813
814
 
954
955
956
957
 
 
 
 
958
959
960
 
808
809
810
 
811
812
813
814
 
954
955
956
 
957
958
959
960
961
962
963
@@ -808,7 +808,7 @@
  i = 0   extsinfo = ()   for i, name in enumerate(sorted(allexts)): - tt = allexts[name] + tt = hglib.tounicode(allexts[name])   opts = {'label':name, 'cpath':'extensions.' + name, 'tooltip':tt,   'descwidget':self.desctext,   'valfunc':self.validateextensions} @@ -954,7 +954,10 @@
  for chk in self.extspagewidgets:   name = chk.opts['label']   chk.setEnabled(changable(name)) - chk.setToolTip(invalidexts.get(name) or hglib.toutf(allexts[name])) + invalmsg = invalidexts.get(name) + if invalmsg: + invalmsg = invalmsg.decode('utf-8') + chk.setToolTip(invalmsg or hglib.tounicode(allexts[name]))      def run(ui, *pats, **opts):