Show More
@@ -525,12 +525,9 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( |
|
|||
530 |
|
|
529 | ctx, ui.config(b'histedit', b'summary-template') | |
531 |
|
|
530 | ) | |
532 | or b'' |
|
|||
533 | ) |
|
|||
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) | |
536 | # trim to 75 columns by default so it's not stupidly wide in my editor |
|
533 | # trim to 75 columns by default so it's not stupidly wide in my editor | |
@@ -1152,12 +1149,9 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( |
|
|||
1157 |
|
|
1153 | self.ctx, self.ui.config(b'histedit', b'summary-template') | |
1158 |
|
|
1154 | ) | |
1159 | or b'' |
|
|||
1160 | ) |
|
|||
1161 | if summary: |
|
1155 | if summary: | |
1162 | return summary |
|
1156 | return summary | |
1163 | # This is split off from the prefix property so that we can |
|
1157 | # This is split off from the prefix property so that we can |
General Comments 0
You need to be logged in to leave comments.
Login now