Mercurial > evolve
diff 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 |
line wrap: on
line diff
--- a/tests/test-topic-stack.t Tue Mar 15 17:26:57 2016 +0000 +++ b/tests/test-topic-stack.t Mon Mar 14 18:39:19 2016 +0000 @@ -69,12 +69,23 @@ abort: no active topic to list [255] +Test "t#" reference +------------------- + + + $ hg up t1 + abort: cannot resolve "t1": no active topic + [255] + $ hg topic foo + $ hg up t42 + abort: cannot resolve "t42": topic "foo" has only 4 changesets + [255] + $ hg up t1 + 0 files updated, 0 files merged, 2 files removed, 0 files unresolved + Case with some of the topic unstable ------------------------------------ - $ hg up 'desc(c_d)' - switching to topic foo - 0 files updated, 0 files merged, 2 files removed, 0 files unresolved $ echo bbb > ddd $ hg commit --amend $ hg log -G