diff tests/test-topic-list.t @ 1985:03d6b685c16a

topic: list the number of 'behind' changeset when --verbose is used Displaying more information in the topic list is useful, we continue with the number of 'behind' changesets. This 'behind' count the number of new changesets on the default rebase destination. This will highlight topics that need rebasing.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Sun, 14 Aug 2016 19:57:58 +0200
parents bee7a1ef8ba8
children d427fd97c9d5
line wrap: on
line diff
--- a/tests/test-topic-list.t	Mon Aug 15 00:19:44 2016 +0200
+++ b/tests/test-topic-list.t	Sun Aug 14 19:57:58 2016 +0200
@@ -174,9 +174,9 @@
 
   $ hg topic --verbose
      bar	(5 changesets, 1 troubled, 2 heads)
-     baz	(2 changesets)
-   * foo	(2 changesets)
-     fuz	(3 changesets, 2 troubled)
+     baz	(2 changesets, 2 behind)
+   * foo	(2 changesets, ambiguous destination)
+     fuz	(3 changesets, 2 troubled, 1 behind)
 
 json
 
@@ -213,16 +213,19 @@
    },
    {
     "active": false,
+    "behindcount": 2,
     "changesetcount": 2,
     "topic": "baz"
    },
    {
     "active": true,
+    "behinderror": "ambiguous destination",
     "changesetcount": 2,
     "topic": "foo"
    },
    {
     "active": false,
+    "behindcount": 1,
     "changesetcount": 3,
     "topic": "fuz",
     "troubledcount": 2