comparison tests/test-topic-stack.t @ 1904:f52c02bf47b7

stack: allow to refer to changeset using "t2" form hg up "t0" is seen as "update to the first changeset of my current topic". Eventually we'll drop the "t2" form in favor of the planned generic indexing operator '.{t2}'.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 14 Mar 2016 18:39:19 +0000
parents 2b65c5a6591c
children 3b42478ef017
comparison
equal deleted inserted replaced
1903:58cdf061d49a 1904:f52c02bf47b7
67 $ hg topic --clear 67 $ hg topic --clear
68 $ hg topic --list 68 $ hg topic --list
69 abort: no active topic to list 69 abort: no active topic to list
70 [255] 70 [255]
71 71
72 Test "t#" reference
73 -------------------
74
75
76 $ hg up t1
77 abort: cannot resolve "t1": no active topic
78 [255]
79 $ hg topic foo
80 $ hg up t42
81 abort: cannot resolve "t42": topic "foo" has only 4 changesets
82 [255]
83 $ hg up t1
84 0 files updated, 0 files merged, 2 files removed, 0 files unresolved
85
72 Case with some of the topic unstable 86 Case with some of the topic unstable
73 ------------------------------------ 87 ------------------------------------
74 88
75 $ hg up 'desc(c_d)'
76 switching to topic foo
77 0 files updated, 0 files merged, 2 files removed, 0 files unresolved
78 $ echo bbb > ddd 89 $ echo bbb > ddd
79 $ hg commit --amend 90 $ hg commit --amend
80 $ hg log -G 91 $ hg log -G
81 @ 7 default {foo} draft c_d 92 @ 7 default {foo} draft c_d
82 | 93 |