Show More
@@ -1258,6 +1258,7 b' def branches(ui, repo, active=False, clo' | |||||
1258 | fmt = ' ' * padsize + ' %d:%s' |
|
1258 | fmt = ' ' * padsize + ' %d:%s' | |
1259 | fm.condwrite(not ui.quiet, 'rev node', fmt, rev, hexfunc(ctx.node()), |
|
1259 | fm.condwrite(not ui.quiet, 'rev node', fmt, rev, hexfunc(ctx.node()), | |
1260 | label='log.changeset changeset.%s' % ctx.phasestr()) |
|
1260 | label='log.changeset changeset.%s' % ctx.phasestr()) | |
|
1261 | fm.context(ctx=ctx) | |||
1261 | fm.data(active=isactive, closed=not isopen, current=current) |
|
1262 | fm.data(active=isactive, closed=not isopen, current=current) | |
1262 | if not ui.quiet: |
|
1263 | if not ui.quiet: | |
1263 | fm.plain(notice) |
|
1264 | fm.plain(notice) |
@@ -519,6 +519,12 b' template output:' | |||||
519 | $ hg branches --closed -T '{if(closed, "{branch}\n")}' |
|
519 | $ hg branches --closed -T '{if(closed, "{branch}\n")}' | |
520 | c |
|
520 | c | |
521 |
|
521 | |||
|
522 | $ hg branches -T '{word(0, branch)}: {desc|firstline}\n' | |||
|
523 | b: reopen branch with a change | |||
|
524 | a: Adding d branch | |||
|
525 | a: Adding b branch head 2 | |||
|
526 | default: Adding root node | |||
|
527 | ||||
522 | Tests of revision branch name caching |
|
528 | Tests of revision branch name caching | |
523 |
|
529 | |||
524 | We rev branch cache is updated automatically. In these tests we use a trick to |
|
530 | We rev branch cache is updated automatically. In these tests we use a trick to |
General Comments 0
You need to be logged in to leave comments.
Login now