Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0.1, 2.0.2, and 2.0.3

stable mq: fix unicode handling of patch message

Changeset 31195ff38d36

Parent 31be3f12d53b

by Yuya Nishihara

Changes to one file · Browse files at 31195ff38d36 Showing diff from parent 31be3f12d53b Diff from another changeset...

 
461
462
463
464
 
465
466
467
 
625
626
627
628
 
629
630
631
 
651
652
653
654
 
655
656
657
 
681
682
683
684
 
685
686
687
 
461
462
463
 
464
465
466
467
 
625
626
627
 
628
629
630
631
 
651
652
653
 
654
655
656
657
 
681
682
683
 
684
685
686
687
@@ -461,7 +461,7 @@
  self.messageEditor.setFocus()     def setMessage(self, message): - self.messageEditor.setText(message) + self.messageEditor.setText(message) # message: unicode   lines = self.messageEditor.lines()   if lines:   lines -= 1 @@ -625,7 +625,7 @@
  self.messages = []   for patch in repo.mq.series:   ctx = repo.changectx(patch) - msg = ctx.description() + msg = hglib.tounicode(ctx.description())   if msg:   self.messages.append((patch, msg))   self.msgSelectCombo.reset(self.messages) @@ -651,7 +651,7 @@
  self.msgSelectCombo.setEnabled(True)   self.qnewOrRefreshBtn.setEnabled(True)   if not newmode: - self.setMessage(pctx.description()) + self.setMessage(hglib.tounicode(pctx.description()))   name = repo.mq.applied[-1].name   self.patchNameLE.setText(hglib.tounicode(name))   else: @@ -681,7 +681,7 @@
  pctx = self.repo.changectx('.')   if 'qtip' in pctx.tags():   self.messageEditor.setEnabled(True) - self.setMessage(pctx.description()) + self.setMessage(hglib.tounicode(pctx.description()))   name = self.repo.mq.applied[-1].name   self.patchNameLE.setText(hglib.tounicode(name))   self.qnewOrRefreshBtn.setEnabled(True)