# Date 1658424269 14400
# Thu Jul 21 13:24:29 2022 -0400
# Branch stable
# Node ID 360fbf5381cc7b26fed008e417cea83231b03ee4
# Parent 92e8c361c1e8c7e5796c2f218955155dad1a88fa
csinfo: don't try to decode Unicode when displaying an SVN convert (fixes #5783)
I'm somewhat puzzled by this, because it displayed fine in the revision widget,
but not in the rebase dialog when rebasing anything onto something converted
from SVN. The value is being converted to Unicode via `hglib.tounicode()` in
18dd0bf3b68e and 5560bf292386 (and I guess eventually fed in here), and I assume
those should be converted with `pycompat.unicode(value, 'utf-8', 'replace')`
instead.
diff --git a/tortoisehg/hgqt/csinfo.py b/tortoisehg/hgqt/csinfo.py
--- a/tortoisehg/hgqt/csinfo.py
+++ b/tortoisehg/hgqt/csinfo.py
@@ -312,8 +312,7 @@
elif item in ('revnum', 'p4', 'close', 'converted'):
return str(value)
elif item == 'svn':
- # svn is always in utf-8 because ctx.extra() isn't converted
- return pycompat.unicode(value, 'utf-8', 'replace')
+ return value
elif item in ('rawbranch', 'branch'):
opts = dict(fg='black', bg='#aaffaa')
return qtlib.markup(' %s ' % value, **opts)