Show More
@@ -525,11 +525,8 b' class histeditaction(object):' | |||||
525 | """ |
|
525 | """ | |
526 | ctx = self.repo[self.node] |
|
526 | ctx = self.repo[self.node] | |
527 | ui = self.repo.ui |
|
527 | ui = self.repo.ui | |
528 | summary = ( |
|
528 | summary = cmdutil.rendertemplate( | |
529 | cmdutil.rendertemplate( |
|
529 | ctx, ui.config(b'histedit', b'summary-template') | |
530 | ctx, ui.config(b'histedit', b'summary-template') |
|
|||
531 | ) |
|
|||
532 | or b'' |
|
|||
533 | ) |
|
530 | ) | |
534 | summary = summary.splitlines()[0] |
|
531 | summary = summary.splitlines()[0] | |
535 | line = b'%s %s %s' % (self.verb, ctx, summary) |
|
532 | line = b'%s %s %s' % (self.verb, ctx, summary) | |
@@ -1152,11 +1149,8 b' class histeditrule(object):' | |||||
1152 |
|
1149 | |||
1153 | @util.propertycache |
|
1150 | @util.propertycache | |
1154 | def desc(self): |
|
1151 | def desc(self): | |
1155 | summary = ( |
|
1152 | summary = cmdutil.rendertemplate( | |
1156 | cmdutil.rendertemplate( |
|
1153 | self.ctx, self.ui.config(b'histedit', b'summary-template') | |
1157 | self.ctx, self.ui.config(b'histedit', b'summary-template') |
|
|||
1158 | ) |
|
|||
1159 | or b'' |
|
|||
1160 | ) |
|
1154 | ) | |
1161 | if summary: |
|
1155 | if summary: | |
1162 | return summary |
|
1156 | return summary |
General Comments 0
You need to be logged in to leave comments.
Login now