tests/test-topic-stack.t
changeset 1961 d9c7fced94fc
parent 1960 a9a1abc7dd75
child 1973 e97458bf53be
--- a/tests/test-topic-stack.t	Mon Apr 04 00:22:20 2016 -0700
+++ b/tests/test-topic-stack.t	Mon Apr 04 00:28:03 2016 -0700
@@ -46,7 +46,19 @@
   o  0 default {other} draft c_a
   
 
+Check that topic without any parent does not crash --list
+---------------------------------------------------------
+
+  $ hg up other
+  switching to topic other
+  0 files updated, 0 files merged, 4 files removed, 0 files unresolved
+  $ hg topic --list
+  t2@ c_b (current)
+  t1: c_a
   $ hg phase --public 'topic("other")'
+  $ hg up foo
+  switching to topic foo
+  4 files updated, 0 files merged, 0 files removed, 0 files unresolved
 
 Simple test
 -----------