1. Yuya Nishihara
  2. thg-qt-mq

Source

thg-qt-mq / svnrev-uni.diff

Yuya Nishihara fbb12cf 
























# HG changeset patch
# Parent d78d17ef5fddd6514dce27993547f534eac98522
diff --git a/tortoisehg/hgqt/csinfo.py b/tortoisehg/hgqt/csinfo.py
--- a/tortoisehg/hgqt/csinfo.py
+++ b/tortoisehg/hgqt/csinfo.py
@@ -193,7 +193,7 @@ class SummaryInfo(object):
                 return p4cl and ('changelist %s' % p4cl)
             elif item == 'svn':
                 extra = ctx.extra()
-                cvt = extra.get('convert_revision', '')
+                cvt = hglib.tounicode(extra.get('convert_revision', ''))
                 if cvt.startswith('svn:'):
                     result = cvt.split('/', 1)[-1]
                     if cvt != result:
diff --git a/tortoisehg/hgqt/revpanel.py b/tortoisehg/hgqt/revpanel.py
--- a/tortoisehg/hgqt/revpanel.py
+++ b/tortoisehg/hgqt/revpanel.py
@@ -73,7 +73,7 @@ def data_func(widget, item, ctx):
         if not ts:
             return None
         try:
-            tctx = ctx._repo[ts]
+            tctx = ctx._repo[hglib.fromunicode(ts)]
             return revline_data(tctx)
         except (error.LookupError, error.RepoLookupError, error.RepoError):
             return ts