##// END OF EJS Templates
histedit: disable color while rendering template for use in plan...
Martin von Zweigbergk -
r46462:62983988 default
parent child Browse files
Show More
@@ -525,7 +525,11 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 with ui.configoverride({}, b'histedit'):
528 # We don't want color codes in the commit message template, so
529 # disable the label() template function while we render it.
530 with ui.configoverride(
531 {(b'templatealias', b'label(l,x)'): b"x"}, b'histedit'
532 ):
529 summary = cmdutil.rendertemplate(
533 summary = cmdutil.rendertemplate(
530 ctx, ui.config(b'histedit', b'summary-template')
534 ctx, ui.config(b'histedit', b'summary-template')
531 )
535 )
@@ -107,10 +107,10 b' test customization of revision summary'
107 colors in the custom template don't show up in the editor
107 colors in the custom template don't show up in the editor
108 $ HGEDITOR=cat hg histedit 177f92b77385 --color=debug \
108 $ HGEDITOR=cat hg histedit 177f92b77385 --color=debug \
109 > --config histedit.summary-template='I am rev {label("rev", rev)}'
109 > --config histedit.summary-template='I am rev {label("rev", rev)}'
110 pick 177f92b77385 I am rev [rev|2]
110 pick 177f92b77385 I am rev 2
111 pick 055a42cdd887 I am rev [rev|3]
111 pick 055a42cdd887 I am rev 3
112 pick e860deea161a I am rev [rev|4]
112 pick e860deea161a I am rev 4
113 pick 652413bf663e I am rev [rev|5]
113 pick 652413bf663e I am rev 5
114
114
115 # Edit history between 177f92b77385 and 652413bf663e
115 # Edit history between 177f92b77385 and 652413bf663e
116 #
116 #
General Comments 0
You need to be logged in to leave comments. Login now