equal
deleted
inserted
replaced
523 by default lines are in the form: |
523 by default lines are in the form: |
524 <hash> <rev> <summary> |
524 <hash> <rev> <summary> |
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) |
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 |
537 # (the 5 more are left for verb) |
534 # (the 5 more are left for verb) |
1150 h, |
1147 h, |
1151 ) |
1148 ) |
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 |
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 |
1164 # separately make the description for 'roll' red (since it |
1158 # separately make the description for 'roll' red (since it |