--- a/hgext3rd/topic/stack.py Wed Apr 24 17:21:21 2019 +0800
+++ b/hgext3rd/topic/stack.py Wed Apr 10 18:20:33 2019 +0800
@@ -175,7 +175,7 @@
return len(self._revs)
@util.propertycache
- def troubledcount(self):
+ def unstablecount(self):
return len([r for r in self._revs if self._repo[r].isunstable()])
@util.propertycache
@@ -381,14 +381,14 @@
"""get various data about a stack
:changesetcount: number of non-obsolete changesets in the stack
- :troubledcount: number on troubled changesets
+ :unstablecount: number of unstable changesets
:headcount: number of heads on the topic
:behindcount: number of changeset on rebase destination
"""
data = {}
current = stack(repo, branch, topic)
data['changesetcount'] = current.changesetcount
- data['troubledcount'] = current.troubledcount
+ data['unstablecount'] = current.unstablecount
data['headcount'] = len(current.heads)
data['behindcount'] = current.behindcount
data['behinderror'] = current.behinderror