Mercurial > evolve
comparison tests/test-topic.t @ 1853:8db7828751b7
topic: wrap the underlying update function rather than the command
This more properly manages the updates done by things like rebase.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 12 Jun 2015 16:39:39 -0500 |
parents | 3084687f7994 |
children | a506ed8ab8da |
comparison
equal
deleted
inserted
replaced
1852:3084687f7994 | 1853:8db7828751b7 |
---|---|
75 narf | 75 narf |
76 $ echo >> fran work >> beta | 76 $ echo >> fran work >> beta |
77 $ hg ci -m 'start on fran' | 77 $ hg ci -m 'start on fran' |
78 created new head | 78 created new head |
79 $ hg co narf | 79 $ hg co narf |
80 switching to topic narf | |
80 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | 81 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
81 switching to topic narf | |
82 $ hg topic | 82 $ hg topic |
83 fran | 83 fran |
84 * narf | 84 * narf |
85 $ echo 'narf!!!' >> alpha | 85 $ echo 'narf!!!' >> alpha |
86 $ hg ci -m 'narf!' | 86 $ hg ci -m 'narf!' |
241 | | 241 | |
242 $ hg topics | 242 $ hg topics |
243 * query | 243 * query |
244 $ cd ../pinky | 244 $ cd ../pinky |
245 $ hg co query | 245 $ hg co query |
246 switching to topic query | |
246 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 247 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
247 switching to topic query | |
248 $ echo answer >> alpha | 248 $ echo answer >> alpha |
249 $ hg ci -m 'Narf is like `zort` or `poit`!' | 249 $ hg ci -m 'Narf is like `zort` or `poit`!' |
250 $ hg merge narf | 250 $ hg merge narf |
251 merging alpha | 251 merging alpha |
252 warning: conflicts during merge. | 252 warning: conflicts during merge. |
445 | | 445 | |
446 | 446 |
447 Move to fran, note that the topic activates, then deactivate the topic. | 447 Move to fran, note that the topic activates, then deactivate the topic. |
448 | 448 |
449 $ hg co fran | 449 $ hg co fran |
450 switching to topic fran | |
450 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | 451 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
451 switching to topic fran | |
452 $ hg topics | 452 $ hg topics |
453 * fran | 453 * fran |
454 $ hg topics --clear | 454 $ hg topics --clear |
455 $ echo fran? >> beta | 455 $ echo fran? >> beta |
456 $ hg ci -m 'fran?' | 456 $ hg ci -m 'fran?' |