Show More
@@ -1,64 +1,64 b'' | |||
|
1 | 1 | #!/bin/sh |
|
2 | 2 | |
|
3 | 3 | echo "[extensions]" >> $HGRCPATH |
|
4 | 4 | echo "mq=" >> $HGRCPATH |
|
5 | 5 | |
|
6 | 6 | hg init foo |
|
7 | 7 | cd foo |
|
8 | 8 | echo a > a |
|
9 | 9 | hg ci -qAm a |
|
10 | 10 | |
|
11 | 11 | echo %% default queue |
|
12 | 12 | hg qqueue |
|
13 | 13 | |
|
14 | 14 | echo b > a |
|
15 | 15 | hg qnew -fgDU somestuff |
|
16 | 16 | |
|
17 | 17 | echo %% applied patches in default queue |
|
18 | 18 | hg qap |
|
19 | 19 | |
|
20 | 20 | echo %% try to change patch \(create succeeds, switch fails\) |
|
21 | 21 | hg qqueue foo --create |
|
22 | 22 | hg qqueue |
|
23 | 23 | |
|
24 | 24 | echo %% empty default queue |
|
25 | 25 | hg qpop |
|
26 | 26 | |
|
27 | 27 | echo %% switch queue |
|
28 | 28 | hg qqueue foo |
|
29 | 29 | hg qqueue |
|
30 | 30 | |
|
31 | 31 | echo %% fail creating queue with already existing name |
|
32 | 32 | hg qqueue --create foo |
|
33 | 33 | hg qqueue |
|
34 | 34 | |
|
35 | 35 | echo %% unapplied patches |
|
36 | 36 | hg qun |
|
37 | 37 | echo c > a |
|
38 | 38 | hg qnew -fgDU otherstuff |
|
39 | 39 | |
|
40 | 40 | echo %% fail switching back |
|
41 | 41 | hg qqueue patches |
|
42 | 42 | |
|
43 | 43 | echo %% fail deleting current |
|
44 | 44 | hg qqueue foo --delete |
|
45 | 45 | |
|
46 | 46 | echo %% switch back and delete foo |
|
47 | 47 | hg qpop -a |
|
48 | 48 | hg qqueue patches |
|
49 | 49 | hg qqueue foo --delete |
|
50 | 50 | hg qqueue |
|
51 | 51 | |
|
52 | 52 | echo %% tricky cases |
|
53 | 53 | hg qqueue store --create |
|
54 | hg qnew test | |
|
54 | hg qnew journal | |
|
55 | 55 | hg qqueue |
|
56 | 56 | hg qpop -a |
|
57 | 57 | hg qqueue patches |
|
58 | 58 | hg qun |
|
59 | 59 | |
|
60 | 60 | echo %% invalid names |
|
61 | 61 | hg qqueue test/../../bar --create |
|
62 | 62 | hg qqueue . --create |
|
63 | 63 | |
|
64 | 64 | cd .. |
@@ -1,36 +1,36 b'' | |||
|
1 | 1 | %% default queue |
|
2 | 2 | patches (active) |
|
3 | 3 | %% applied patches in default queue |
|
4 | 4 | somestuff |
|
5 | 5 | %% try to change patch (create succeeds, switch fails) |
|
6 | 6 | abort: patches applied - cannot set new queue active |
|
7 | 7 | foo |
|
8 | 8 | patches (active) |
|
9 | 9 | %% empty default queue |
|
10 | 10 | popping somestuff |
|
11 | 11 | patch queue now empty |
|
12 | 12 | %% switch queue |
|
13 | 13 | foo (active) |
|
14 | 14 | patches |
|
15 | 15 | %% fail creating queue with already existing name |
|
16 | 16 | abort: queue "foo" already exists |
|
17 | 17 | foo (active) |
|
18 | 18 | patches |
|
19 | 19 | %% unapplied patches |
|
20 | 20 | %% fail switching back |
|
21 | 21 | abort: patches applied - cannot set new queue active |
|
22 | 22 | %% fail deleting current |
|
23 | 23 | abort: cannot delete currently active queue |
|
24 | 24 | %% switch back and delete foo |
|
25 | 25 | popping otherstuff |
|
26 | 26 | patch queue now empty |
|
27 | 27 | patches (active) |
|
28 | 28 | %% tricky cases |
|
29 | 29 | patches |
|
30 | 30 | store (active) |
|
31 | popping test | |
|
31 | popping journal | |
|
32 | 32 | patch queue now empty |
|
33 | 33 | somestuff |
|
34 | 34 | %% invalid names |
|
35 | 35 | abort: invalid queue name, may not contain the characters ":\/." |
|
36 | 36 | abort: invalid queue name, may not contain the characters ":\/." |
General Comments 0
You need to be logged in to leave comments.
Login now