Changeset 3153d31959a9…
Parent b254149d601e…
by
Changes to 2 files · Browse files at 3153d31959a9 Showing diff from parent b254149d601e Diff from another changeset...
@@ -114,6 +114,9 @@ 'Color changesets by author name. If not enabled,'
' the changes are colored green for merge, red for'
' non-trivial parents, black for normal. Default: False'),
+ ('Long Summary', 'tortoisehg.longsummary', ['False', 'True'],
+ 'Concatenate multiple lines of changeset summary'
+ ' until they reach 80 characters. Default: False'),
('Log Batch Size', 'tortoisehg.graphlimit', ['500'],
'The number of revisions to read and display in the'
' changelog viewer in a single batch. Default: 500'),
|
@@ -101,7 +101,14 @@ ctx = self.repo.changectx(revid)
summary = ctx.description().replace('\0', '')
- summary = summary.split('\n')[0]
+ if self.repo.ui.configbool('tortoisehg', 'longsummary'):
+ lines = summary.split('\n')
+ summary = lines.pop(0)
+ while len(summary) < 80 and lines:
+ summary += ' ' + lines.pop(0)
+ summary = summary[0:80]
+ else:
+ summary = summary.split('\n')[0]
summary = gobject.markup_escape_text(toutf(summary))
node = self.repo.lookup(revid)
tags = self.repo.nodetags(node)
|
Loading...