tests/test-topic-dest.t
branchstable
changeset 5023 abefd37c6afa
parent 4181 ab3581bc0637
child 5024 b1a9d548af52
--- a/tests/test-topic-dest.t	Tue Dec 10 21:03:51 2019 +0100
+++ b/tests/test-topic-dest.t	Fri Dec 20 17:17:30 2019 +0530
@@ -500,3 +500,17 @@
   pick 38eea8439aee 14 arthur
   pick 411315c48bdc 15 pompadour
   #  p, pick = use commit
+
+  $ cd ..
+
+destination check: when active topic is empty
+
+  $ hg init emptytopic
+  $ cd emptytopic
+  $ echo a > a
+  $ hg ci -Am "added a"
+  adding a
+  $ hg topic foo
+  marked working directory as topic: foo
+  $ hg up 2>&1 | grep "AssertionError"
+  AssertionError: any branch has at least one head