Commits

Yuya Nishihara committed 427efc0

history: convert encoding of keywords before passing to mercurial

Gtk widget uses UTF-8, but Mercurial is locale-dependent, so we need to
convert encoding of filter keywords.

Comments (0)

Files changed (1)

tortoisehg/hgtk/history.py

         ret = self.check_filter_text(text, mode)
         if not ret:
             return
+        text = hglib.fromutf(text)
         opts = {}
         if mode == MODE_REVRANGE:
             opts['revlist'] = ret