--- a/hgext3rd/topic/stack.py Sat Aug 13 01:24:10 2016 +0200
+++ b/hgext3rd/topic/stack.py Sun Aug 14 19:40:53 2016 +0200
@@ -69,11 +69,15 @@
:changesetcount: number of non-obsolete changesets in the stack
:troubledcount: number on troubled changesets
+ :headcount: number of heads on the topic
"""
data = {}
revs = repo.revs("topic(%s) - obsolete()", topic)
data['changesetcount'] = len(revs)
data['troubledcount'] = len([r for r in revs if repo[r].troubled()])
+ deps, rdeps = builddependencies(repo, revs)
+ data['headcount'] = len([r for r in revs if not rdeps[r]])
+
return data
# Copied from evolve 081605c2e9b6