Mercurial > evolve
comparison hgext3rd/topic/stack.py @ 1996:5c40dd2cf131
stack: add some basic branch information
In the same spirit as knowing the topic you are on, having some branch data seem
useful (yet, this smell a bit like summary)
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Fri, 26 Aug 2016 14:23:31 +0200 |
parents | 54d6dff699f0 |
children | ce86f7bb4b7b |
comparison
equal
deleted
inserted
replaced
1995:54d6dff699f0 | 1996:5c40dd2cf131 |
---|---|
23 | 23 |
24 label = 'topic' | 24 label = 'topic' |
25 if topic == repo.currenttopic: | 25 if topic == repo.currenttopic: |
26 label = 'topic.active' | 26 label = 'topic.active' |
27 | 27 |
28 data = stackdata(repo, topic) | |
28 fm.plain(_('### topic: %s\n') % ui.label(topic, label), | 29 fm.plain(_('### topic: %s\n') % ui.label(topic, label), |
29 label='topic.stack.summary.topic') | 30 label='topic.stack.summary.topic') |
31 fm.plain(_('### branch: %s\n') | |
32 % '+'.join(data['branches']), # XXX handle multi branches | |
33 label='topic.stack.summary.branches') | |
30 | 34 |
31 for idx, r in enumerate(getstack(repo, topic), 1): | 35 for idx, r in enumerate(getstack(repo, topic), 1): |
32 ctx = repo[r] | 36 ctx = repo[r] |
33 p1 = ctx.p1() | 37 p1 = ctx.p1() |
34 if p1.obsolete(): | 38 if p1.obsolete(): |