Commit f8afcb0c authored by Sushil Khanchi's avatar Sushil Khanchi 🐨
Browse files

evolve: add test to demonstrate a bug when no active topic

Added test shows that the logic to find the destination for
`hg up` in the case when "working directory parent has a topic
but wdir has no active topic" is buggy.

This will be fixed in next patch.

--HG--
branch : stable
parent b1a9d548af52
......@@ -515,3 +515,16 @@ destination check: when active topic is empty
$ hg up
clearing empty topic "foo"
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
destination check: when wdp has a topic but wdir has no active topic:
$ hg topic foo
marked working directory as topic: foo
$ echo b > b
$ hg ci -Am "added b"
adding b
active topic 'foo' grew its first changeset
(see 'hg help topics' for more information)
$ hg topic --clear
$ hg up 2>&1 | grep "AssertionError"
AssertionError: any revision has at least one descendant branch 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