Show More
@@ -1142,6 +1142,10 b' def diffordiffstat(ui, repo, diffopts, n' | |||||
1142 | sub.diff(ui, diffopts, tempnode2, submatch, changes=changes, |
|
1142 | sub.diff(ui, diffopts, tempnode2, submatch, changes=changes, | |
1143 | stat=stat, fp=fp, prefix=prefix) |
|
1143 | stat=stat, fp=fp, prefix=prefix) | |
1144 |
|
1144 | |||
|
1145 | def _changesetlabels(ctx): | |||
|
1146 | labels = ['log.changeset', 'changeset.%s' % ctx.phasestr()] | |||
|
1147 | return ' '.join(labels) | |||
|
1148 | ||||
1145 | class changeset_printer(object): |
|
1149 | class changeset_printer(object): | |
1146 | '''show changeset information when templating not requested.''' |
|
1150 | '''show changeset information when templating not requested.''' | |
1147 |
|
1151 | |||
@@ -1202,7 +1206,7 b' class changeset_printer(object):' | |||||
1202 |
|
1206 | |||
1203 | # i18n: column positioning for "hg log" |
|
1207 | # i18n: column positioning for "hg log" | |
1204 | self.ui.write(_("changeset: %d:%s\n") % revnode, |
|
1208 | self.ui.write(_("changeset: %d:%s\n") % revnode, | |
1205 |
label= |
|
1209 | label=_changesetlabels(ctx)) | |
1206 |
|
1210 | |||
1207 | # branches are shown first before any other names due to backwards |
|
1211 | # branches are shown first before any other names due to backwards | |
1208 | # compatibility |
|
1212 | # compatibility |
General Comments 0
You need to be logged in to leave comments.
Login now