26 label = 'topic.active' |
26 label = 'topic.active' |
27 |
27 |
28 data = stackdata(repo, topic) |
28 data = stackdata(repo, topic) |
29 fm.plain(_('### topic: %s\n') % ui.label(topic, label), |
29 fm.plain(_('### topic: %s\n') % ui.label(topic, label), |
30 label='topic.stack.summary.topic') |
30 label='topic.stack.summary.topic') |
31 fm.plain(_('### branch: %s\n') |
31 fm.plain(_('### branch: %s') |
32 % '+'.join(data['branches']), # XXX handle multi branches |
32 % '+'.join(data['branches']), # XXX handle multi branches |
33 label='topic.stack.summary.branches') |
33 label='topic.stack.summary.branches') |
|
34 if data['behindcount'] == -1: |
|
35 fm.plain(', ') |
|
36 fm.plain('ambigious rebase destination', label='topic.stack.summary.behinderror') |
|
37 elif data['behindcount']: |
|
38 fm.plain(', ') |
|
39 fm.plain('%d behind' % data['behindcount'], label='topic.stack.summary.behindcount') |
|
40 fm.plain('\n') |
34 |
41 |
35 for idx, r in enumerate(getstack(repo, topic), 1): |
42 for idx, r in enumerate(getstack(repo, topic), 1): |
36 ctx = repo[r] |
43 ctx = repo[r] |
37 p1 = ctx.p1() |
44 p1 = ctx.p1() |
38 if p1.obsolete(): |
45 if p1.obsolete(): |