diff hgext3rd/topic/stack.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 03d6b685c16a
children 71410fa2c253
line wrap: on
line diff
--- a/hgext3rd/topic/stack.py	Tue Aug 16 15:43:06 2016 +0200
+++ b/hgext3rd/topic/stack.py	Tue Aug 23 23:38:28 2016 +0200
@@ -91,6 +91,7 @@
             data['behindcount'] = 0
         except error.ManyMergeDestAbort:
             data['behindcount'] = -1
+    data['branches'] = sorted(set(repo[r].branch() for r in revs))
 
     return data