Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0.5, 2.1, and 2.1.1

stable hglib: more careful unicode handling in get_revision_desc (fixes #755)

Changeset 50542e82b084

Parent 0c93a3122251

by Steve Borho

Changes to one file · Browse files at 50542e82b084 Showing diff from parent 0c93a3122251 Diff from another changeset...

 
558
559
560
561
 
562
563
564
565
 
 
 
566
567
 
568
569
570
 
558
559
560
 
561
562
 
 
 
563
564
565
566
 
567
568
569
570
@@ -558,13 +558,13 @@
  rev = fctx.linkrev()   # If the source path matches the current path, don't bother including it.   if curpath and curpath == fctx.path(): - source = '' + source = u''   else: - source = '(%s)' % fctx.path() - date = age(fctx.date()) - l = tounicode(fctx.description()).replace('\0', '').splitlines() + source = u'(%s)' % tounicode(fctx.path()) + date = tounicode(age(fctx.date())) + l = tounicode(fctx.description()).splitlines()   summary = l and l[0] or '' - return '%s@%s%s:%s "%s"' % (author, rev, source, date, summary) + return u'%s@%s%s:%s "%s"' % (author, rev, source, date, summary)    def validate_synch_path(path, repo):   '''