equal
deleted
inserted
replaced
|
1 testing topic with shelve extension |
|
2 ------------------------------------ |
|
3 |
|
4 $ . "$TESTDIR/testlib/topic_setup.sh" |
|
5 |
|
6 $ hg init repo |
|
7 $ cd repo |
|
8 $ cat <<EOF >>.hg/hgrc |
|
9 > [extensions] |
|
10 > shelve= |
|
11 > EOF |
|
12 |
|
13 $ touch a |
|
14 $ echo "Hello" >> a |
|
15 $ hg topic "testing-shelve" |
|
16 $ hg topic |
|
17 * testing-shelve |
|
18 $ hg ci -m "First commit" -A |
|
19 adding a |
|
20 $ hg topic |
|
21 * testing-shelve |
|
22 $ echo " World" >> a |
|
23 $ hg stack |
|
24 ### topic: testing-shelve |
|
25 ### branch: default |
|
26 t1@ First commit (current) |
|
27 |
|
28 shelve test |
|
29 ----------- |
|
30 |
|
31 $ hg shelve |
|
32 shelved as default |
|
33 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
34 $ hg topic |
|
35 * testing-shelve |
|
36 $ hg stack |
|
37 ### topic: testing-shelve |
|
38 ### branch: default |
|
39 t1@ First commit (current) |
|
40 |
|
41 unshelve test |
|
42 ------------- |
|
43 $ hg unshelve |
|
44 unshelving change 'default' |
|
45 $ hg topic |
|
46 * testing-shelve |
|
47 $ hg stack |
|
48 ### topic: testing-shelve |
|
49 ### branch: default |
|
50 t1@ First commit (current) |