##// END OF EJS Templates
branches: format rev as integer that is necessary for generic templater
Yuya Nishihara -
r22702:08a4e70e default
parent child Browse files
Show More
@@ -1116,8 +1116,10 b' def branches(ui, repo, active=False, clo'
1116 notice = _(' (inactive)')
1116 notice = _(' (inactive)')
1117 if tag == repo.dirstate.branch():
1117 if tag == repo.dirstate.branch():
1118 label = 'branches.current'
1118 label = 'branches.current'
1119 rev = str(ctx.rev()).rjust(31 - encoding.colwidth(tag))
1119 rev = ctx.rev()
1120 rev = ui.label('%s:%s' % (rev, hexfunc(ctx.node())),
1120 padsize = max(31 - len(str(rev)) - encoding.colwidth(tag), 0)
1121 fmt = ' ' * padsize + '%d:%s'
1122 rev = ui.label(fmt % (rev, hexfunc(ctx.node())),
1121 'log.changeset changeset.%s' % ctx.phasestr())
1123 'log.changeset changeset.%s' % ctx.phasestr())
1122 labeledtag = ui.label(tag, label)
1124 labeledtag = ui.label(tag, label)
1123 if ui.quiet:
1125 if ui.quiet:
General Comments 0
You need to be logged in to leave comments. Login now