Mercurial > evolve
diff hgext3rd/topic/__init__.py @ 1988:9a5d797d25be
topic: list the branches this topic belong to when verbose
Using the verbose listing a bit more, this seems to be useful information.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Tue, 23 Aug 2016 23:38:28 +0200 |
parents | d427fd97c9d5 |
children | cf9414f2b5cd |
line wrap: on
line diff
--- a/hgext3rd/topic/__init__.py Tue Aug 16 15:43:06 2016 +0200 +++ b/hgext3rd/topic/__init__.py Tue Aug 23 23:38:28 2016 +0200 @@ -301,6 +301,10 @@ # XXX we should include the data even when not verbose data = stack.stackdata(repo, topic) fm.plain(' (') + fm.write('branches+', 'on branch: %s', + '+'.join(data['branches']), # XXX use list directly after 4.0 is released + label='topic.list.branches') + fm.plain(', ') fm.write('changesetcount', '%d changesets', data['changesetcount'], label='topic.list.changesetcount') if data['troubledcount']: