Changeset ebf6cbdb680a…
Parent 533dcf5dbdf5…
by
Changes to one file · Browse files at ebf6cbdb680a Showing diff from parent 533dcf5dbdf5 Diff from another changeset...
@@ -221,10 +221,9 @@ return hglib.toutf(ctx.description().replace('\0', ''))
elif item == 'summary':
value = ctx.description().replace('\0', '').split('\n')[0]
- value = hglib.tounicode(value[:80])
if len(value) == 0:
return None
- return hglib.toutf(value)
+ return hglib.toutf(hglib.tounicode(value)[:80])
elif item == 'user':
return hglib.toutf(ctx.user())
elif item == 'dateage':
|
Loading...