##// END OF EJS Templates
cmdutil: add support for evolution "troubles" display in changeset_printer...
Denis Laxalde -
r30695:f05ede08 default
parent child Browse files
Show More
@@ -1144,6 +1144,10 b' def diffordiffstat(ui, repo, diffopts, n'
1144
1144
1145 def _changesetlabels(ctx):
1145 def _changesetlabels(ctx):
1146 labels = ['log.changeset', 'changeset.%s' % ctx.phasestr()]
1146 labels = ['log.changeset', 'changeset.%s' % ctx.phasestr()]
1147 if ctx.troubled():
1148 labels.append('changeset.troubled')
1149 for trouble in ctx.troubles():
1150 labels.append('trouble.%s' % trouble)
1147 return ' '.join(labels)
1151 return ' '.join(labels)
1148
1152
1149 class changeset_printer(object):
1153 class changeset_printer(object):
@@ -1252,6 +1256,10 b' class changeset_printer(object):'
1252 self.ui.write(_("date: %s\n") % date,
1256 self.ui.write(_("date: %s\n") % date,
1253 label='log.date')
1257 label='log.date')
1254
1258
1259 if ctx.troubled():
1260 self.ui.write(_("trouble: %s\n") % ', '.join(ctx.troubles()),
1261 label='ui.note log.trouble')
1262
1255 if self.ui.debugflag:
1263 if self.ui.debugflag:
1256 files = ctx.p1().status(ctx)[:3]
1264 files = ctx.p1().status(ctx)[:3]
1257 for key, value in zip([# i18n: column positioning for "hg log"
1265 for key, value in zip([# i18n: column positioning for "hg log"
@@ -614,6 +614,7 b' Test that rewriting leaving instability '
614 parent: 11:3334b7925910
614 parent: 11:3334b7925910
615 user: test
615 user: test
616 date: Thu Jan 01 00:00:00 1970 +0000
616 date: Thu Jan 01 00:00:00 1970 +0000
617 trouble: unstable
617 summary: babar
618 summary: babar
618
619
619
620
General Comments 0
You need to be logged in to leave comments. Login now