diff tests/test-topic-stack-data.t @ 3060:f43a310c4338

topics: show changesetcount, troubledcount and headscount by default
author Pulkit Goyal <7895pulkit@gmail.com>
date Fri, 13 Oct 2017 10:18:52 +0530
parents 945a0989e41b
children a867d59ea97a 28fb347a5bf8
line wrap: on
line diff
--- a/tests/test-topic-stack-data.t	Fri Oct 13 10:01:38 2017 +0530
+++ b/tests/test-topic-stack-data.t	Fri Oct 13 10:18:52 2017 +0530
@@ -165,18 +165,18 @@
 basic output
 
   $ hg topic
-     bar
-     baz
-   * foo
-     fuz
+     bar (5 changesets, 1 troubled, 2 heads)
+     baz (2 changesets)
+   * foo (2 changesets)
+     fuz (3 changesets, 2 troubled)
 
 quiet version
 
   $ hg topic --quiet
-  bar
-  baz
-  foo
-  fuz
+  bar (5 changesets, 1 troubled, 2 heads)
+  baz (2 changesets)
+  foo (2 changesets)
+  fuz (3 changesets, 2 troubled)
 
 verbose
 
@@ -192,19 +192,26 @@
   [
    {
     "active": false,
-    "topic": "bar"
+    "changesetcount": 5,
+    "headcount": 2,
+    "topic": "bar",
+    "troubledcount": 1
    },
    {
     "active": false,
+    "changesetcount": 2,
     "topic": "baz"
    },
    {
     "active": true,
+    "changesetcount": 2,
     "topic": "foo"
    },
    {
     "active": false,
-    "topic": "fuz"
+    "changesetcount": 3,
+    "topic": "fuz",
+    "troubledcount": 2
    }
   ]