diff tests/test-topic-list.t @ 1979:bee7a1ef8ba8

topic: list the number of head when --verbose is used Displaying more information in the topic list is useful, we continue with the number of heads on the topics, this will help highlight the problem to users. We only display head if there is more than one.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Sun, 14 Aug 2016 19:40:53 +0200
parents e42dd4523c0d
children 03d6b685c16a
line wrap: on
line diff
--- a/tests/test-topic-list.t	Sat Aug 13 01:24:10 2016 +0200
+++ b/tests/test-topic-list.t	Sun Aug 14 19:40:53 2016 +0200
@@ -173,7 +173,7 @@
 verbose
 
   $ hg topic --verbose
-     bar	(5 changesets, 1 troubled)
+     bar	(5 changesets, 1 troubled, 2 heads)
      baz	(2 changesets)
    * foo	(2 changesets)
      fuz	(3 changesets, 2 troubled)
@@ -207,6 +207,7 @@
    {
     "active": false,
     "changesetcount": 5,
+    "headcount": 2,
     "topic": "bar",
     "troubledcount": 1
    },