Commit 01370c98 authored by Sushil Khanchi's avatar Sushil Khanchi 🐨
Browse files

evolve: add test to demonstrate a bug when active topic is empty

Added test shows that when current active topic is empty and we try
to run `hg up`, it fails with an error. It's because this case is not
correctly handled when we find a destination to update (when topics
are in play)

Next patch will fix this.

--HG--
branch : stable
parent a3f692bcbbf4
......@@ -500,3 +500,17 @@ By default histedit should edit with the current topic only
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment