Show More
@@ -42,17 +42,6 b' echo % qinit -c' | |||
|
42 | 42 | hg --cwd c qinit -c |
|
43 | 43 | hg -R c/.hg/patches st |
|
44 | 44 | |
|
45 | echo % qnew should refuse bad patch names | |
|
46 | hg -R c qnew series | |
|
47 | hg -R c qnew status | |
|
48 | hg -R c qnew guards | |
|
49 | hg -R c qnew .hgignore | |
|
50 | ||
|
51 | echo % qnew implies add | |
|
52 | ||
|
53 | hg -R c qnew test.patch | |
|
54 | hg -R c/.hg/patches st | |
|
55 | ||
|
56 | 45 | echo '% qinit; qinit -c' |
|
57 | 46 | hg init d |
|
58 | 47 | cd d |
@@ -90,25 +79,7 b' cd ..' | |||
|
90 | 79 | |
|
91 | 80 | cd a |
|
92 | 81 | |
|
93 | echo a > somefile | |
|
94 | hg add somefile | |
|
95 | ||
|
96 | echo % qnew with uncommitted changes | |
|
97 | ||
|
98 | hg qnew uncommitted.patch | |
|
99 | hg st | |
|
100 | hg qseries | |
|
101 | ||
|
102 | echo '% qnew missing' | |
|
103 | hg qnew missing.patch missing | |
|
104 | ||
|
105 | hg revert --no-backup somefile | |
|
106 | rm somefile | |
|
107 | ||
|
108 | echo % qnew -m | |
|
109 | ||
|
110 | 82 | hg qnew -m 'foo bar' test.patch |
|
111 | cat .hg/patches/test.patch | |
|
112 | 83 | |
|
113 | 84 | echo % qrefresh |
|
114 | 85 |
@@ -3,8 +3,41 b'' | |||
|
3 | 3 | echo "[extensions]" >> $HGRCPATH |
|
4 | 4 | echo "mq=" >> $HGRCPATH |
|
5 | 5 | |
|
6 |
hg init |
|
|
7 |
cd |
|
|
6 | hg init mq | |
|
7 | cd mq | |
|
8 | ||
|
9 | echo a > a | |
|
10 | hg ci -Ama | |
|
11 | ||
|
12 | echo '% qnew should refuse bad patch names' | |
|
13 | hg qnew series | |
|
14 | hg qnew status | |
|
15 | hg qnew guards | |
|
16 | hg qnew .hgignore | |
|
17 | ||
|
18 | hg qinit -c | |
|
19 | ||
|
20 | echo '% qnew with uncommitted changes' | |
|
21 | echo a > somefile | |
|
22 | hg add somefile | |
|
23 | hg qnew uncommitted.patch | |
|
24 | hg st | |
|
25 | hg qseries | |
|
26 | hg revert --no-backup somefile | |
|
27 | rm somefile | |
|
28 | ||
|
29 | echo '% qnew implies add' | |
|
30 | hg qnew test.patch | |
|
31 | hg -R .hg/patches st | |
|
32 | ||
|
33 | echo '% qnew missing' | |
|
34 | hg qnew missing.patch missing | |
|
35 | ||
|
36 | echo '% qnew -m' | |
|
37 | hg qnew -m 'foo bar' mtest.patch | |
|
38 | cat .hg/patches/mtest.patch | |
|
39 | ||
|
40 | echo '% qnew twice' | |
|
8 | 41 | hg qnew first.patch |
|
9 | 42 | hg qnew first.patch |
|
10 | 43 |
@@ -1,2 +1,20 b'' | |||
|
1 | adding a | |
|
2 | % qnew should refuse bad patch names | |
|
3 | abort: "series" cannot be used as the name of a patch | |
|
4 | abort: "status" cannot be used as the name of a patch | |
|
5 | abort: "guards" cannot be used as the name of a patch | |
|
6 | abort: ".hgignore" cannot be used as the name of a patch | |
|
7 | % qnew with uncommitted changes | |
|
8 | abort: local changes found, refresh first | |
|
9 | A somefile | |
|
10 | % qnew implies add | |
|
11 | A .hgignore | |
|
12 | A series | |
|
13 | A test.patch | |
|
14 | % qnew missing | |
|
15 | abort: missing: No such file or directory | |
|
16 | % qnew -m | |
|
17 | foo bar | |
|
18 | % qnew twice | |
|
1 | 19 | abort: patch "first.patch" already exists |
|
2 | 20 | abort: patch "first.patch" already exists |
@@ -65,15 +65,6 b' adding b/z' | |||
|
65 | 65 | % qinit -c |
|
66 | 66 | A .hgignore |
|
67 | 67 | A series |
|
68 | % qnew should refuse bad patch names | |
|
69 | abort: "series" cannot be used as the name of a patch | |
|
70 | abort: "status" cannot be used as the name of a patch | |
|
71 | abort: "guards" cannot be used as the name of a patch | |
|
72 | abort: ".hgignore" cannot be used as the name of a patch | |
|
73 | % qnew implies add | |
|
74 | A .hgignore | |
|
75 | A series | |
|
76 | A test.patch | |
|
77 | 68 | % qinit; qinit -c |
|
78 | 69 | .hgignore: |
|
79 | 70 | ^\.hg |
@@ -96,13 +87,6 b' bleh' | |||
|
96 | 87 | series: |
|
97 | 88 | A |
|
98 | 89 | B |
|
99 | % qnew with uncommitted changes | |
|
100 | abort: local changes found, refresh first | |
|
101 | A somefile | |
|
102 | % qnew missing | |
|
103 | abort: missing: No such file or directory | |
|
104 | % qnew -m | |
|
105 | foo bar | |
|
106 | 90 | % qrefresh |
|
107 | 91 | foo bar |
|
108 | 92 |
General Comments 0
You need to be logged in to leave comments.
Login now