test: add testing of stack output in 'stack-data' test.
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Fri, 26 Aug 2016 14:58:18 +0200
changeset 1994 10d10563e2a8
parent 1993 c8749ae18cd9
child 1995 54d6dff699f0
test: add testing of stack output in 'stack-data' test. We are going to display common information, so we reuse test case.
tests/test-topic-stack-data.t
--- 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