diff hgext3rd/topic/stack.py @ 4581:48521a49a07e

stack: rename troubledcount to unstablecount
author Anton Shestakov <av6@dwimlabs.net>
date Wed, 10 Apr 2019 18:20:33 +0800
parents 94743877e50b
children 6b7ad4b50d00
line wrap: on
line diff
--- 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