changeset 1994:10d10563e2a8

test: add testing of stack output in 'stack-data' test. We are going to display common information, so we reuse test case.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Fri, 26 Aug 2016 14:58:18 +0200
parents c8749ae18cd9
children 54d6dff699f0
files tests/test-topic-stack-data.t
diffstat 1 files changed, 25 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-topic-stack-data.t	Fri Aug 26 14:58:49 2016 +0200
+++ b/tests/test-topic-stack-data.t	Fri Aug 26 14:58:18 2016 +0200
@@ -235,3 +235,28 @@
     "troubledcount": 2
    }
   ]
+
+Also test this situation with 'hg stack'
+=======================================
+
+  $ hg stack bar
+  t5: add bar_c
+  t2^ add bar_b (base)
+  t4$ add bar_e (unstable)
+  t3: bar1_d
+  t2: add bar_b
+  t1: add bar_a
+    ^ add base_e
+  $ hg stack baz
+  t2: add baz_b
+  t1: add baz_a
+    ^ add base_c
+  $ hg stack foo
+  t2@ add foo_b (current)
+  t1: add foo_a
+    ^ add lake_a
+  $ hg stack fuz
+  t3$ add fuz_c (unstable)
+  t2$ add fuz_b (unstable)
+  t1: fuz1_a
+    ^ add base_d