Show More
@@ -1,169 +1,194 | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
3 | echo "[extensions]" >> $HGRCPATH |
|
3 | echo "[extensions]" >> $HGRCPATH | |
4 | echo "mq=" >> $HGRCPATH |
|
4 | echo "mq=" >> $HGRCPATH | |
5 |
|
5 | |||
6 | echo % init |
|
6 | echo % init | |
7 | hg init a |
|
7 | hg init a | |
8 | cd a |
|
8 | cd a | |
9 |
|
9 | |||
10 | echo % commit |
|
10 | echo % commit | |
11 | mkdir 1 2 |
|
11 | mkdir 1 2 | |
12 | echo 'base' > 1/base |
|
12 | echo 'base' > 1/base | |
13 | echo 'base' > 2/base |
|
13 | echo 'base' > 2/base | |
14 | hg ci -Ambase -d '1 0' |
|
14 | hg ci -Ambase -d '1 0' | |
15 |
|
15 | |||
16 | echo % qnew mqbase |
|
16 | echo % qnew mqbase | |
17 | hg qnew -mmqbase mqbase |
|
17 | hg qnew -mmqbase mqbase | |
18 |
|
18 | |||
19 | echo % qrefresh |
|
19 | echo % qrefresh | |
20 | echo 'patched' > 1/base |
|
20 | echo 'patched' > 1/base | |
21 | echo 'patched' > 2/base |
|
21 | echo 'patched' > 2/base | |
22 | hg qrefresh |
|
22 | hg qrefresh | |
23 |
|
23 | |||
24 | echo % qdiff |
|
24 | echo % qdiff | |
25 | hg qdiff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ |
|
25 | hg qdiff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | |
26 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" |
|
26 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" | |
27 |
|
27 | |||
28 | echo % qdiff dirname |
|
28 | echo % qdiff dirname | |
29 | hg qdiff . | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ |
|
29 | hg qdiff . | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | |
30 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" |
|
30 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" | |
31 |
|
31 | |||
32 | echo % patch file contents |
|
32 | echo % patch file contents | |
33 | cat .hg/patches/mqbase | \ |
|
33 | cat .hg/patches/mqbase | \ | |
34 | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ |
|
34 | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | |
35 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" |
|
35 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" | |
36 |
|
36 | |||
37 | echo % qrefresh 1 |
|
37 | echo % qrefresh 1 | |
38 | echo 'patched again' > base |
|
38 | echo 'patched again' > base | |
39 | hg qrefresh 1 |
|
39 | hg qrefresh 1 | |
40 |
|
40 | |||
41 | echo % qdiff |
|
41 | echo % qdiff | |
42 | hg qdiff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ |
|
42 | hg qdiff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | |
43 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" |
|
43 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" | |
44 |
|
44 | |||
45 | echo % qdiff dirname |
|
45 | echo % qdiff dirname | |
46 | hg qdiff . | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ |
|
46 | hg qdiff . | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | |
47 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" |
|
47 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" | |
48 |
|
48 | |||
49 | echo % patch file contents |
|
49 | echo % patch file contents | |
50 | cat .hg/patches/mqbase | \ |
|
50 | cat .hg/patches/mqbase | \ | |
51 | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ |
|
51 | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | |
52 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" |
|
52 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" | |
53 |
|
53 | |||
54 | echo % qrefresh . in subdir |
|
54 | echo % qrefresh . in subdir | |
55 | ( cd 1 ; hg qrefresh . ) |
|
55 | ( cd 1 ; hg qrefresh . ) | |
56 |
|
56 | |||
57 | echo % qdiff |
|
57 | echo % qdiff | |
58 | hg qdiff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ |
|
58 | hg qdiff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | |
59 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" |
|
59 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" | |
60 |
|
60 | |||
61 | echo % qdiff dirname |
|
61 | echo % qdiff dirname | |
62 | hg qdiff . | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ |
|
62 | hg qdiff . | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | |
63 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" |
|
63 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" | |
64 |
|
64 | |||
65 | echo % patch file contents |
|
65 | echo % patch file contents | |
66 | cat .hg/patches/mqbase | \ |
|
66 | cat .hg/patches/mqbase | \ | |
67 | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ |
|
67 | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | |
68 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" |
|
68 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" | |
69 |
|
69 | |||
70 | echo % qrefresh in hg-root again |
|
70 | echo % qrefresh in hg-root again | |
71 | hg qrefresh |
|
71 | hg qrefresh | |
72 |
|
72 | |||
73 | echo % qdiff |
|
73 | echo % qdiff | |
74 | hg qdiff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ |
|
74 | hg qdiff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | |
75 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" |
|
75 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" | |
76 |
|
76 | |||
77 | echo % qdiff dirname |
|
77 | echo % qdiff dirname | |
78 | hg qdiff . | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ |
|
78 | hg qdiff . | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | |
79 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" |
|
79 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" | |
80 |
|
80 | |||
81 | echo % patch file contents |
|
81 | echo % patch file contents | |
82 | cat .hg/patches/mqbase | \ |
|
82 | cat .hg/patches/mqbase | \ | |
83 | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ |
|
83 | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | |
84 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" |
|
84 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" | |
85 |
|
85 | |||
86 | echo |
|
86 | echo | |
87 | echo % qrefresh --short tests: |
|
87 | echo % qrefresh --short tests: | |
88 | echo 'orphan' > orphanchild |
|
88 | echo 'orphan' > orphanchild | |
89 | hg add orphanchild |
|
89 | hg add orphanchild | |
90 |
|
90 | |||
91 | echo % - add 1/base and 2/base one by one |
|
91 | echo % - add 1/base and 2/base one by one | |
92 | hg qrefresh nonexistingfilename # clear patch |
|
92 | hg qrefresh nonexistingfilename # clear patch | |
93 | hg qrefresh --short 1/base |
|
93 | hg qrefresh --short 1/base | |
94 | hg qrefresh --short 2/base |
|
94 | hg qrefresh --short 2/base | |
95 |
|
95 | |||
96 | echo % -- qdiff output |
|
96 | echo % -- qdiff output | |
97 | hg qdiff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ |
|
97 | hg qdiff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | |
98 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" |
|
98 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" | |
99 |
|
99 | |||
100 | echo % -- patch file content |
|
100 | echo % -- patch file content | |
101 | cat .hg/patches/mqbase | \ |
|
101 | cat .hg/patches/mqbase | \ | |
102 | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ |
|
102 | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | |
103 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" |
|
103 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" | |
104 | hg st |
|
104 | hg st | |
105 |
|
105 | |||
106 | echo % -- diff shows what is not in patch |
|
106 | echo % -- diff shows what is not in patch | |
107 | hg diff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ |
|
107 | hg diff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ | |
108 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" \ |
|
108 | -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" \ | |
109 | -e "s/^\(diff\).*/\1/" |
|
109 | -e "s/^\(diff\).*/\1/" | |
110 | echo % - before starting exclusive tests |
|
110 | echo % - before starting exclusive tests | |
111 | sed -n '/^diff/s/diff -r [^ ]* //p' .hg/patches/mqbase |
|
111 | sed -n '/^diff/s/diff -r [^ ]* //p' .hg/patches/mqbase | |
112 | echo % - exclude 2/base |
|
112 | echo % - exclude 2/base | |
113 | hg qref -s -X 2/base |
|
113 | hg qref -s -X 2/base | |
114 | sed -n '/^diff/s/diff -r [^ ]* //p' .hg/patches/mqbase |
|
114 | sed -n '/^diff/s/diff -r [^ ]* //p' .hg/patches/mqbase | |
115 | echo % -- status shows 2/base as dirty |
|
115 | echo % -- status shows 2/base as dirty | |
116 | hg st |
|
116 | hg st | |
117 | echo % - remove 1/base and add 2/base again but not orphanchild |
|
117 | echo % - remove 1/base and add 2/base again but not orphanchild | |
118 | hg qref -s -X orphanchild -X 1/base 2/base orphanchild |
|
118 | hg qref -s -X orphanchild -X 1/base 2/base orphanchild | |
119 | sed -n '/^diff/s/diff -r [^ ]* //p' .hg/patches/mqbase |
|
119 | sed -n '/^diff/s/diff -r [^ ]* //p' .hg/patches/mqbase | |
120 | echo % - add 1/base with include filter - and thus remove 2/base from patch |
|
120 | echo % - add 1/base with include filter - and thus remove 2/base from patch | |
121 | hg qref -s -I 1/ o* */* |
|
121 | hg qref -s -I 1/ o* */* | |
122 | sed -n '/^diff/s/diff -r [^ ]* //p' .hg/patches/mqbase |
|
122 | sed -n '/^diff/s/diff -r [^ ]* //p' .hg/patches/mqbase | |
123 | echo |
|
123 | echo | |
124 | cd .. |
|
124 | cd .. | |
125 |
|
125 | |||
126 | # Test qrefresh --git losing copy metadata |
|
126 | # Test qrefresh --git losing copy metadata | |
127 | echo % create test repo |
|
127 | echo % create test repo | |
128 | hg init repo |
|
128 | hg init repo | |
129 | cd repo |
|
129 | cd repo | |
130 | echo "[diff]" >> .hg/hgrc |
|
130 | echo "[diff]" >> .hg/hgrc | |
131 | echo "git=True" >> .hg/hgrc |
|
131 | echo "git=True" >> .hg/hgrc | |
132 | echo a > a |
|
132 | echo a > a | |
133 | hg ci -Am adda |
|
133 | hg ci -Am adda | |
134 | hg copy a ab |
|
134 | hg copy a ab | |
135 | echo b >> ab |
|
135 | echo b >> ab | |
136 | hg copy a ac |
|
136 | hg copy a ac | |
137 | echo c >> ac |
|
137 | echo c >> ac | |
138 | echo % capture changes |
|
138 | echo % capture changes | |
139 | hg qnew -f p1 |
|
139 | hg qnew -f p1 | |
140 | hg qdiff |
|
140 | hg qdiff | |
141 | echo % refresh and check changes again |
|
141 | echo % refresh and check changes again | |
142 | hg qref |
|
142 | hg qref | |
143 | hg qdiff |
|
143 | hg qdiff | |
144 | cd .. |
|
144 | cd .. | |
145 |
|
145 | |||
146 | # Test issue 1441: qrefresh confused after hg rename |
|
146 | # Test issue 1441: qrefresh confused after hg rename | |
147 | echo % issue1441 without git patches |
|
147 | echo % issue1441 without git patches | |
148 | hg init repo-1441 |
|
148 | hg init repo-1441 | |
149 | cd repo-1441 |
|
149 | cd repo-1441 | |
150 | echo a > a |
|
150 | echo a > a | |
151 | hg add a |
|
151 | hg add a | |
152 | hg qnew -f p |
|
152 | hg qnew -f p | |
153 | hg mv a b |
|
153 | hg mv a b | |
154 | hg qrefresh |
|
154 | hg qrefresh | |
155 | hg qdiff --nodates |
|
155 | hg qdiff --nodates | |
156 | cd .. |
|
156 | cd .. | |
157 |
|
157 | |||
|
158 | echo '% issue2025: qrefresh does not honor filtering options when tip != qtip' | |||
|
159 | hg init repo-2025 | |||
|
160 | cd repo-2025 | |||
|
161 | echo a > a | |||
|
162 | echo b > b | |||
|
163 | hg ci -qAm addab | |||
|
164 | echo a >> a | |||
|
165 | echo b >> b | |||
|
166 | hg qnew -f patch | |||
|
167 | hg up -qC 0 | |||
|
168 | echo c > c | |||
|
169 | hg ci -qAm addc | |||
|
170 | hg up -qC 1 | |||
|
171 | echo '% refresh with tip != qtip' | |||
|
172 | hg --config diff.nodates=1 qrefresh -I b 2>&1 \ | |||
|
173 | | sed 's/saving bundle.*/saving bundle.../g' | |||
|
174 | echo '% status after refresh' | |||
|
175 | hg st | |||
|
176 | echo '% b after refresh' | |||
|
177 | cat b | |||
|
178 | echo '% patch file after refresh' | |||
|
179 | cat .hg/patches/patch | |||
|
180 | cd .. | |||
|
181 | ||||
|
182 | ||||
158 | echo % issue1441 with git patches |
|
183 | echo % issue1441 with git patches | |
159 | hg init repo-1441-git |
|
184 | hg init repo-1441-git | |
160 | cd repo-1441-git |
|
185 | cd repo-1441-git | |
161 | echo "[diff]" >> .hg/hgrc |
|
186 | echo "[diff]" >> .hg/hgrc | |
162 | echo "git=True" >> .hg/hgrc |
|
187 | echo "git=True" >> .hg/hgrc | |
163 | echo a > a |
|
188 | echo a > a | |
164 | hg add a |
|
189 | hg add a | |
165 | hg qnew -f p |
|
190 | hg qnew -f p | |
166 | hg mv a b |
|
191 | hg mv a b | |
167 | hg qrefresh |
|
192 | hg qrefresh | |
168 | hg qdiff --nodates |
|
193 | hg qdiff --nodates | |
169 | cd .. No newline at end of file |
|
194 | cd .. |
@@ -1,268 +1,288 | |||||
1 | % init |
|
1 | % init | |
2 | % commit |
|
2 | % commit | |
3 | adding 1/base |
|
3 | adding 1/base | |
4 | adding 2/base |
|
4 | adding 2/base | |
5 | % qnew mqbase |
|
5 | % qnew mqbase | |
6 | % qrefresh |
|
6 | % qrefresh | |
7 | % qdiff |
|
7 | % qdiff | |
8 | diff -r b55ecdccb5cf 1/base |
|
8 | diff -r b55ecdccb5cf 1/base | |
9 | --- a/1/base |
|
9 | --- a/1/base | |
10 | +++ b/1/base |
|
10 | +++ b/1/base | |
11 | @@ -1,1 +1,1 @@ |
|
11 | @@ -1,1 +1,1 @@ | |
12 | -base |
|
12 | -base | |
13 | +patched |
|
13 | +patched | |
14 | diff -r b55ecdccb5cf 2/base |
|
14 | diff -r b55ecdccb5cf 2/base | |
15 | --- a/2/base |
|
15 | --- a/2/base | |
16 | +++ b/2/base |
|
16 | +++ b/2/base | |
17 | @@ -1,1 +1,1 @@ |
|
17 | @@ -1,1 +1,1 @@ | |
18 | -base |
|
18 | -base | |
19 | +patched |
|
19 | +patched | |
20 | % qdiff dirname |
|
20 | % qdiff dirname | |
21 | diff -r b55ecdccb5cf 1/base |
|
21 | diff -r b55ecdccb5cf 1/base | |
22 | --- a/1/base |
|
22 | --- a/1/base | |
23 | +++ b/1/base |
|
23 | +++ b/1/base | |
24 | @@ -1,1 +1,1 @@ |
|
24 | @@ -1,1 +1,1 @@ | |
25 | -base |
|
25 | -base | |
26 | +patched |
|
26 | +patched | |
27 | diff -r b55ecdccb5cf 2/base |
|
27 | diff -r b55ecdccb5cf 2/base | |
28 | --- a/2/base |
|
28 | --- a/2/base | |
29 | +++ b/2/base |
|
29 | +++ b/2/base | |
30 | @@ -1,1 +1,1 @@ |
|
30 | @@ -1,1 +1,1 @@ | |
31 | -base |
|
31 | -base | |
32 | +patched |
|
32 | +patched | |
33 | % patch file contents |
|
33 | % patch file contents | |
34 | mqbase |
|
34 | mqbase | |
35 |
|
35 | |||
36 | diff -r b55ecdccb5cf 1/base |
|
36 | diff -r b55ecdccb5cf 1/base | |
37 | --- a/1/base |
|
37 | --- a/1/base | |
38 | +++ b/1/base |
|
38 | +++ b/1/base | |
39 | @@ -1,1 +1,1 @@ |
|
39 | @@ -1,1 +1,1 @@ | |
40 | -base |
|
40 | -base | |
41 | +patched |
|
41 | +patched | |
42 | diff -r b55ecdccb5cf 2/base |
|
42 | diff -r b55ecdccb5cf 2/base | |
43 | --- a/2/base |
|
43 | --- a/2/base | |
44 | +++ b/2/base |
|
44 | +++ b/2/base | |
45 | @@ -1,1 +1,1 @@ |
|
45 | @@ -1,1 +1,1 @@ | |
46 | -base |
|
46 | -base | |
47 | +patched |
|
47 | +patched | |
48 | % qrefresh 1 |
|
48 | % qrefresh 1 | |
49 | % qdiff |
|
49 | % qdiff | |
50 | diff -r b55ecdccb5cf 1/base |
|
50 | diff -r b55ecdccb5cf 1/base | |
51 | --- a/1/base |
|
51 | --- a/1/base | |
52 | +++ b/1/base |
|
52 | +++ b/1/base | |
53 | @@ -1,1 +1,1 @@ |
|
53 | @@ -1,1 +1,1 @@ | |
54 | -base |
|
54 | -base | |
55 | +patched |
|
55 | +patched | |
56 | diff -r b55ecdccb5cf 2/base |
|
56 | diff -r b55ecdccb5cf 2/base | |
57 | --- a/2/base |
|
57 | --- a/2/base | |
58 | +++ b/2/base |
|
58 | +++ b/2/base | |
59 | @@ -1,1 +1,1 @@ |
|
59 | @@ -1,1 +1,1 @@ | |
60 | -base |
|
60 | -base | |
61 | +patched |
|
61 | +patched | |
62 | % qdiff dirname |
|
62 | % qdiff dirname | |
63 | diff -r b55ecdccb5cf 1/base |
|
63 | diff -r b55ecdccb5cf 1/base | |
64 | --- a/1/base |
|
64 | --- a/1/base | |
65 | +++ b/1/base |
|
65 | +++ b/1/base | |
66 | @@ -1,1 +1,1 @@ |
|
66 | @@ -1,1 +1,1 @@ | |
67 | -base |
|
67 | -base | |
68 | +patched |
|
68 | +patched | |
69 | diff -r b55ecdccb5cf 2/base |
|
69 | diff -r b55ecdccb5cf 2/base | |
70 | --- a/2/base |
|
70 | --- a/2/base | |
71 | +++ b/2/base |
|
71 | +++ b/2/base | |
72 | @@ -1,1 +1,1 @@ |
|
72 | @@ -1,1 +1,1 @@ | |
73 | -base |
|
73 | -base | |
74 | +patched |
|
74 | +patched | |
75 | % patch file contents |
|
75 | % patch file contents | |
76 | mqbase |
|
76 | mqbase | |
77 |
|
77 | |||
78 | diff -r b55ecdccb5cf 1/base |
|
78 | diff -r b55ecdccb5cf 1/base | |
79 | --- a/1/base |
|
79 | --- a/1/base | |
80 | +++ b/1/base |
|
80 | +++ b/1/base | |
81 | @@ -1,1 +1,1 @@ |
|
81 | @@ -1,1 +1,1 @@ | |
82 | -base |
|
82 | -base | |
83 | +patched |
|
83 | +patched | |
84 | % qrefresh . in subdir |
|
84 | % qrefresh . in subdir | |
85 | % qdiff |
|
85 | % qdiff | |
86 | diff -r b55ecdccb5cf 1/base |
|
86 | diff -r b55ecdccb5cf 1/base | |
87 | --- a/1/base |
|
87 | --- a/1/base | |
88 | +++ b/1/base |
|
88 | +++ b/1/base | |
89 | @@ -1,1 +1,1 @@ |
|
89 | @@ -1,1 +1,1 @@ | |
90 | -base |
|
90 | -base | |
91 | +patched |
|
91 | +patched | |
92 | diff -r b55ecdccb5cf 2/base |
|
92 | diff -r b55ecdccb5cf 2/base | |
93 | --- a/2/base |
|
93 | --- a/2/base | |
94 | +++ b/2/base |
|
94 | +++ b/2/base | |
95 | @@ -1,1 +1,1 @@ |
|
95 | @@ -1,1 +1,1 @@ | |
96 | -base |
|
96 | -base | |
97 | +patched |
|
97 | +patched | |
98 | % qdiff dirname |
|
98 | % qdiff dirname | |
99 | diff -r b55ecdccb5cf 1/base |
|
99 | diff -r b55ecdccb5cf 1/base | |
100 | --- a/1/base |
|
100 | --- a/1/base | |
101 | +++ b/1/base |
|
101 | +++ b/1/base | |
102 | @@ -1,1 +1,1 @@ |
|
102 | @@ -1,1 +1,1 @@ | |
103 | -base |
|
103 | -base | |
104 | +patched |
|
104 | +patched | |
105 | diff -r b55ecdccb5cf 2/base |
|
105 | diff -r b55ecdccb5cf 2/base | |
106 | --- a/2/base |
|
106 | --- a/2/base | |
107 | +++ b/2/base |
|
107 | +++ b/2/base | |
108 | @@ -1,1 +1,1 @@ |
|
108 | @@ -1,1 +1,1 @@ | |
109 | -base |
|
109 | -base | |
110 | +patched |
|
110 | +patched | |
111 | % patch file contents |
|
111 | % patch file contents | |
112 | mqbase |
|
112 | mqbase | |
113 |
|
113 | |||
114 | diff -r b55ecdccb5cf 1/base |
|
114 | diff -r b55ecdccb5cf 1/base | |
115 | --- a/1/base |
|
115 | --- a/1/base | |
116 | +++ b/1/base |
|
116 | +++ b/1/base | |
117 | @@ -1,1 +1,1 @@ |
|
117 | @@ -1,1 +1,1 @@ | |
118 | -base |
|
118 | -base | |
119 | +patched |
|
119 | +patched | |
120 | % qrefresh in hg-root again |
|
120 | % qrefresh in hg-root again | |
121 | % qdiff |
|
121 | % qdiff | |
122 | diff -r b55ecdccb5cf 1/base |
|
122 | diff -r b55ecdccb5cf 1/base | |
123 | --- a/1/base |
|
123 | --- a/1/base | |
124 | +++ b/1/base |
|
124 | +++ b/1/base | |
125 | @@ -1,1 +1,1 @@ |
|
125 | @@ -1,1 +1,1 @@ | |
126 | -base |
|
126 | -base | |
127 | +patched |
|
127 | +patched | |
128 | diff -r b55ecdccb5cf 2/base |
|
128 | diff -r b55ecdccb5cf 2/base | |
129 | --- a/2/base |
|
129 | --- a/2/base | |
130 | +++ b/2/base |
|
130 | +++ b/2/base | |
131 | @@ -1,1 +1,1 @@ |
|
131 | @@ -1,1 +1,1 @@ | |
132 | -base |
|
132 | -base | |
133 | +patched |
|
133 | +patched | |
134 | % qdiff dirname |
|
134 | % qdiff dirname | |
135 | diff -r b55ecdccb5cf 1/base |
|
135 | diff -r b55ecdccb5cf 1/base | |
136 | --- a/1/base |
|
136 | --- a/1/base | |
137 | +++ b/1/base |
|
137 | +++ b/1/base | |
138 | @@ -1,1 +1,1 @@ |
|
138 | @@ -1,1 +1,1 @@ | |
139 | -base |
|
139 | -base | |
140 | +patched |
|
140 | +patched | |
141 | diff -r b55ecdccb5cf 2/base |
|
141 | diff -r b55ecdccb5cf 2/base | |
142 | --- a/2/base |
|
142 | --- a/2/base | |
143 | +++ b/2/base |
|
143 | +++ b/2/base | |
144 | @@ -1,1 +1,1 @@ |
|
144 | @@ -1,1 +1,1 @@ | |
145 | -base |
|
145 | -base | |
146 | +patched |
|
146 | +patched | |
147 | % patch file contents |
|
147 | % patch file contents | |
148 | mqbase |
|
148 | mqbase | |
149 |
|
149 | |||
150 | diff -r b55ecdccb5cf 1/base |
|
150 | diff -r b55ecdccb5cf 1/base | |
151 | --- a/1/base |
|
151 | --- a/1/base | |
152 | +++ b/1/base |
|
152 | +++ b/1/base | |
153 | @@ -1,1 +1,1 @@ |
|
153 | @@ -1,1 +1,1 @@ | |
154 | -base |
|
154 | -base | |
155 | +patched |
|
155 | +patched | |
156 | diff -r b55ecdccb5cf 2/base |
|
156 | diff -r b55ecdccb5cf 2/base | |
157 | --- a/2/base |
|
157 | --- a/2/base | |
158 | +++ b/2/base |
|
158 | +++ b/2/base | |
159 | @@ -1,1 +1,1 @@ |
|
159 | @@ -1,1 +1,1 @@ | |
160 | -base |
|
160 | -base | |
161 | +patched |
|
161 | +patched | |
162 |
|
162 | |||
163 | % qrefresh --short tests: |
|
163 | % qrefresh --short tests: | |
164 | % - add 1/base and 2/base one by one |
|
164 | % - add 1/base and 2/base one by one | |
165 | % -- qdiff output |
|
165 | % -- qdiff output | |
166 | diff -r b55ecdccb5cf 1/base |
|
166 | diff -r b55ecdccb5cf 1/base | |
167 | --- a/1/base |
|
167 | --- a/1/base | |
168 | +++ b/1/base |
|
168 | +++ b/1/base | |
169 | @@ -1,1 +1,1 @@ |
|
169 | @@ -1,1 +1,1 @@ | |
170 | -base |
|
170 | -base | |
171 | +patched |
|
171 | +patched | |
172 | diff -r b55ecdccb5cf 2/base |
|
172 | diff -r b55ecdccb5cf 2/base | |
173 | --- a/2/base |
|
173 | --- a/2/base | |
174 | +++ b/2/base |
|
174 | +++ b/2/base | |
175 | @@ -1,1 +1,1 @@ |
|
175 | @@ -1,1 +1,1 @@ | |
176 | -base |
|
176 | -base | |
177 | +patched |
|
177 | +patched | |
178 | diff -r b55ecdccb5cf orphanchild |
|
178 | diff -r b55ecdccb5cf orphanchild | |
179 | --- /dev/null |
|
179 | --- /dev/null | |
180 | +++ b/orphanchild |
|
180 | +++ b/orphanchild | |
181 | @@ -0,0 +1,1 @@ |
|
181 | @@ -0,0 +1,1 @@ | |
182 | +orphan |
|
182 | +orphan | |
183 | % -- patch file content |
|
183 | % -- patch file content | |
184 | mqbase |
|
184 | mqbase | |
185 |
|
185 | |||
186 | diff -r b55ecdccb5cf 1/base |
|
186 | diff -r b55ecdccb5cf 1/base | |
187 | --- a/1/base |
|
187 | --- a/1/base | |
188 | +++ b/1/base |
|
188 | +++ b/1/base | |
189 | @@ -1,1 +1,1 @@ |
|
189 | @@ -1,1 +1,1 @@ | |
190 | -base |
|
190 | -base | |
191 | +patched |
|
191 | +patched | |
192 | diff -r b55ecdccb5cf 2/base |
|
192 | diff -r b55ecdccb5cf 2/base | |
193 | --- a/2/base |
|
193 | --- a/2/base | |
194 | +++ b/2/base |
|
194 | +++ b/2/base | |
195 | @@ -1,1 +1,1 @@ |
|
195 | @@ -1,1 +1,1 @@ | |
196 | -base |
|
196 | -base | |
197 | +patched |
|
197 | +patched | |
198 | A orphanchild |
|
198 | A orphanchild | |
199 | ? base |
|
199 | ? base | |
200 | % -- diff shows what is not in patch |
|
200 | % -- diff shows what is not in patch | |
201 | diff |
|
201 | diff | |
202 | --- /dev/null |
|
202 | --- /dev/null | |
203 | +++ b/orphanchild |
|
203 | +++ b/orphanchild | |
204 | @@ -0,0 +1,1 @@ |
|
204 | @@ -0,0 +1,1 @@ | |
205 | +orphan |
|
205 | +orphan | |
206 | % - before starting exclusive tests |
|
206 | % - before starting exclusive tests | |
207 | 1/base |
|
207 | 1/base | |
208 | 2/base |
|
208 | 2/base | |
209 | % - exclude 2/base |
|
209 | % - exclude 2/base | |
210 | 1/base |
|
210 | 1/base | |
211 | % -- status shows 2/base as dirty |
|
211 | % -- status shows 2/base as dirty | |
212 | M 2/base |
|
212 | M 2/base | |
213 | A orphanchild |
|
213 | A orphanchild | |
214 | ? base |
|
214 | ? base | |
215 | % - remove 1/base and add 2/base again but not orphanchild |
|
215 | % - remove 1/base and add 2/base again but not orphanchild | |
216 | 2/base |
|
216 | 2/base | |
217 | % - add 1/base with include filter - and thus remove 2/base from patch |
|
217 | % - add 1/base with include filter - and thus remove 2/base from patch | |
218 | 1/base |
|
218 | 1/base | |
219 |
|
219 | |||
220 | % create test repo |
|
220 | % create test repo | |
221 | adding a |
|
221 | adding a | |
222 | % capture changes |
|
222 | % capture changes | |
223 | diff --git a/a b/ab |
|
223 | diff --git a/a b/ab | |
224 | copy from a |
|
224 | copy from a | |
225 | copy to ab |
|
225 | copy to ab | |
226 | --- a/a |
|
226 | --- a/a | |
227 | +++ b/ab |
|
227 | +++ b/ab | |
228 | @@ -1,1 +1,2 @@ |
|
228 | @@ -1,1 +1,2 @@ | |
229 | a |
|
229 | a | |
230 | +b |
|
230 | +b | |
231 | diff --git a/a b/ac |
|
231 | diff --git a/a b/ac | |
232 | copy from a |
|
232 | copy from a | |
233 | copy to ac |
|
233 | copy to ac | |
234 | --- a/a |
|
234 | --- a/a | |
235 | +++ b/ac |
|
235 | +++ b/ac | |
236 | @@ -1,1 +1,2 @@ |
|
236 | @@ -1,1 +1,2 @@ | |
237 | a |
|
237 | a | |
238 | +c |
|
238 | +c | |
239 | % refresh and check changes again |
|
239 | % refresh and check changes again | |
240 | diff --git a/a b/ab |
|
240 | diff --git a/a b/ab | |
241 | copy from a |
|
241 | copy from a | |
242 | copy to ab |
|
242 | copy to ab | |
243 | --- a/a |
|
243 | --- a/a | |
244 | +++ b/ab |
|
244 | +++ b/ab | |
245 | @@ -1,1 +1,2 @@ |
|
245 | @@ -1,1 +1,2 @@ | |
246 | a |
|
246 | a | |
247 | +b |
|
247 | +b | |
248 | diff --git a/a b/ac |
|
248 | diff --git a/a b/ac | |
249 | copy from a |
|
249 | copy from a | |
250 | copy to ac |
|
250 | copy to ac | |
251 | --- a/a |
|
251 | --- a/a | |
252 | +++ b/ac |
|
252 | +++ b/ac | |
253 | @@ -1,1 +1,2 @@ |
|
253 | @@ -1,1 +1,2 @@ | |
254 | a |
|
254 | a | |
255 | +c |
|
255 | +c | |
256 | % issue1441 without git patches |
|
256 | % issue1441 without git patches | |
257 | diff -r 000000000000 b |
|
257 | diff -r 000000000000 b | |
258 | --- /dev/null |
|
258 | --- /dev/null | |
259 | +++ b/b |
|
259 | +++ b/b | |
260 | @@ -0,0 +1,1 @@ |
|
260 | @@ -0,0 +1,1 @@ | |
261 | +a |
|
261 | +a | |
|
262 | % issue2025: qrefresh does not honor filtering options when tip != qtip | |||
|
263 | % refresh with tip != qtip | |||
|
264 | saving bundle... | |||
|
265 | adding branch | |||
|
266 | adding changesets | |||
|
267 | adding manifests | |||
|
268 | adding file changes | |||
|
269 | added 1 changesets with 1 changes to 1 files | |||
|
270 | % status after refresh | |||
|
271 | M a | |||
|
272 | % b after refresh | |||
|
273 | b | |||
|
274 | b | |||
|
275 | % patch file after refresh | |||
|
276 | diff -r 1a60229be7ac b | |||
|
277 | --- a/b | |||
|
278 | +++ b/b | |||
|
279 | @@ -1,1 +1,2 @@ | |||
|
280 | b | |||
|
281 | +b | |||
262 | % issue1441 with git patches |
|
282 | % issue1441 with git patches | |
263 | diff --git a/b b/b |
|
283 | diff --git a/b b/b | |
264 | new file mode 100644 |
|
284 | new file mode 100644 | |
265 | --- /dev/null |
|
285 | --- /dev/null | |
266 | +++ b/b |
|
286 | +++ b/b | |
267 | @@ -0,0 +1,1 @@ |
|
287 | @@ -0,0 +1,1 @@ | |
268 | +a |
|
288 | +a |
General Comments 0
You need to be logged in to leave comments.
Login now