Mercurial > evolve
comparison tests/test-topic-stack.t @ 2985:f63c97c01f92
topics/ui: signal when the topics command creates a new (empty) topic
author | Aurélien Campéas |
---|---|
date | Tue, 26 Sep 2017 12:29:15 +0200 |
parents | 7759d040d48d |
children | 4746b92cc1f8 |
comparison
equal
deleted
inserted
replaced
2984:30f6030dca8f | 2985:f63c97c01f92 |
---|---|
11 > EOF | 11 > EOF |
12 | 12 |
13 $ hg init main | 13 $ hg init main |
14 $ cd main | 14 $ cd main |
15 $ hg topic other | 15 $ hg topic other |
16 marked working directory as topic: other | |
16 $ echo aaa > aaa | 17 $ echo aaa > aaa |
17 $ hg add aaa | 18 $ hg add aaa |
18 $ hg commit -m c_a | 19 $ hg commit -m c_a |
19 $ echo aaa > bbb | 20 $ echo aaa > bbb |
20 $ hg add bbb | 21 $ hg add bbb |
236 | 237 |
237 $ hg up t2 | 238 $ hg up t2 |
238 abort: cannot resolve "t2": no active topic | 239 abort: cannot resolve "t2": no active topic |
239 [255] | 240 [255] |
240 $ hg topic foo | 241 $ hg topic foo |
242 marked working directory as topic: foo | |
241 $ hg up t42 | 243 $ hg up t42 |
242 abort: cannot resolve "t42": topic "foo" has only 4 changesets | 244 abort: cannot resolve "t42": topic "foo" has only 4 changesets |
243 [255] | 245 [255] |
244 $ hg up t2 | 246 $ hg up t2 |
245 0 files updated, 0 files merged, 2 files removed, 0 files unresolved | 247 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
566 | 568 |
567 $ echo aaa > aaa | 569 $ echo aaa > aaa |
568 $ hg commit -Am 'c_A' | 570 $ hg commit -Am 'c_A' |
569 adding aaa | 571 adding aaa |
570 $ hg topic red | 572 $ hg topic red |
573 marked working directory as topic: red | |
571 $ echo bbb > bbb | 574 $ echo bbb > bbb |
572 $ hg commit -Am 'c_B' | 575 $ hg commit -Am 'c_B' |
573 adding bbb | 576 adding bbb |
574 $ echo ccc > ccc | 577 $ echo ccc > ccc |
575 $ hg commit -Am 'c_C' | 578 $ hg commit -Am 'c_C' |