Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

stable csinfo: handle non-ascii svn field correctly (fixes #1046)

hgsubversion or convert/subversion stores convert_revision field in utf-8.

Changeset 18737f2e08cc

Parent 5520838338fc

by Yuya Nishihara

Changes to one file · Browse files at 18737f2e08cc Showing diff from parent 5520838338fc Diff from another changeset...

 
249
250
251
252
 
253
 
 
 
254
255
256
 
249
250
251
 
252
253
254
255
256
257
258
259
@@ -249,8 +249,11 @@
  return '%s' % revid   elif item in ('revid', 'transplant'):   return qtlib.markup(value, **mono) - elif item in ('revnum', 'p4', 'svn', 'close'): + elif item in ('revnum', 'p4', 'close'):   return str(value) + elif item == 'svn': + # svn is always in utf-8 because ctx.extra() isn't converted + return unicode(value, 'utf-8', 'replace')   elif item in ('rawbranch', 'branch'):   opts = dict(fg='black', bg='#aaffaa')   return qtlib.markup(' %s ' % value, **opts)