Yuya Nishihara  committed 5719b55

commit: keep userhist in unicode to avoid comparison failure to QString

It seems unicode.__eq__ internally calls str(right)-equivalent in place of
unicode(right), which does not work if right object is non-ascii QString.

  • Participants
  • Parent commits dba4928
  • Branches stable
  • Tags 2.9.2

Comments (0)

Files changed (1)

File tortoisehg/hgqt/

         self.msghistory = list(s.value(gpref+'history-'+repoid).toStringList())
         self.msghistory = [unicode(m) for m in self.msghistory if m]
-        self.userhist = s.value(gpref+'userhist').toStringList()
+        self.userhist = map(unicode, s.value(gpref+'userhist').toStringList())
         self.userhist = [u for u in self.userhist if u]
             curmsg = self.repo.opener('cur-message.txt').read()