comparison tests/test-topic-stack.t @ 1961:d9c7fced94fc

stack: prevent crash when topic is rooted on nullid We exclude null from displayed base. This was causing a crash when trying to display its description (we'll still have to handle the empty description case, but it is now less urgent).
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 04 Apr 2016 00:28:03 -0700
parents a9a1abc7dd75
children e97458bf53be
comparison
equal deleted inserted replaced
1960:a9a1abc7dd75 1961:d9c7fced94fc
44 o 1 default {other} draft c_b 44 o 1 default {other} draft c_b
45 | 45 |
46 o 0 default {other} draft c_a 46 o 0 default {other} draft c_a
47 47
48 48
49 Check that topic without any parent does not crash --list
50 ---------------------------------------------------------
51
52 $ hg up other
53 switching to topic other
54 0 files updated, 0 files merged, 4 files removed, 0 files unresolved
55 $ hg topic --list
56 t2@ c_b (current)
57 t1: c_a
49 $ hg phase --public 'topic("other")' 58 $ hg phase --public 'topic("other")'
59 $ hg up foo
60 switching to topic foo
61 4 files updated, 0 files merged, 0 files removed, 0 files unresolved
50 62
51 Simple test 63 Simple test
52 ----------- 64 -----------
53 65
54 hg topic -l list all changeset in the topic 66 hg topic -l list all changeset in the topic