##// END OF EJS Templates
test-glog: extend a test before fixing --follow issues...
Patrick Mezard -
r16164:18743c4d stable
parent child Browse files
Show More
@@ -1,20 +1,28 b''
1 $ "$TESTDIR/hghave" execbit || exit 80
1 $ "$TESTDIR/hghave" execbit || exit 80
2
2
3 The g is crafted to have 2 filelog topological heads in a linear
4 changeset graph
5
3 $ hg init a
6 $ hg init a
4
5 $ cd a
7 $ cd a
6 $ echo a > a
8 $ echo a > a
9 $ echo f > f
7 $ hg ci -Ama -d '1 0'
10 $ hg ci -Ama -d '1 0'
8 adding a
11 adding a
12 adding f
9
13
10 $ hg cp a b
14 $ hg cp a b
15 $ hg cp f g
11 $ hg ci -mb -d '2 0'
16 $ hg ci -mb -d '2 0'
12
17
13 $ mkdir dir
18 $ mkdir dir
14 $ hg mv b dir
19 $ hg mv b dir
20 $ echo g >> g
21 $ echo f >> f
15 $ hg ci -mc -d '3 0'
22 $ hg ci -mc -d '3 0'
16
23
17 $ hg mv a b
24 $ hg mv a b
25 $ hg cp -f f g
18 $ echo a > d
26 $ echo a > d
19 $ hg add d
27 $ hg add d
20 $ hg ci -md -d '4 0'
28 $ hg ci -md -d '4 0'
@@ -23,7 +31,7 b''
23 $ hg ci -me -d '5 0'
31 $ hg ci -me -d '5 0'
24
32
25 $ hg log a
33 $ hg log a
26 changeset: 0:8580ff50825a
34 changeset: 0:9161b9aeaf16
27 user: test
35 user: test
28 date: Thu Jan 01 00:00:01 1970 +0000
36 date: Thu Jan 01 00:00:01 1970 +0000
29 summary: a
37 summary: a
@@ -38,28 +46,28 b''
38 -f, but no args
46 -f, but no args
39
47
40 $ hg log -f
48 $ hg log -f
41 changeset: 4:66c1345dc4f9
49 changeset: 4:7e4639b4691b
42 tag: tip
50 tag: tip
43 user: test
51 user: test
44 date: Thu Jan 01 00:00:05 1970 +0000
52 date: Thu Jan 01 00:00:05 1970 +0000
45 summary: e
53 summary: e
46
54
47 changeset: 3:7c6c671bb7cc
55 changeset: 3:2ca5ba701980
48 user: test
56 user: test
49 date: Thu Jan 01 00:00:04 1970 +0000
57 date: Thu Jan 01 00:00:04 1970 +0000
50 summary: d
58 summary: d
51
59
52 changeset: 2:41dd4284081e
60 changeset: 2:f8954cd4dc1f
53 user: test
61 user: test
54 date: Thu Jan 01 00:00:03 1970 +0000
62 date: Thu Jan 01 00:00:03 1970 +0000
55 summary: c
63 summary: c
56
64
57 changeset: 1:784de7cef101
65 changeset: 1:d89b0a12d229
58 user: test
66 user: test
59 date: Thu Jan 01 00:00:02 1970 +0000
67 date: Thu Jan 01 00:00:02 1970 +0000
60 summary: b
68 summary: b
61
69
62 changeset: 0:8580ff50825a
70 changeset: 0:9161b9aeaf16
63 user: test
71 user: test
64 date: Thu Jan 01 00:00:01 1970 +0000
72 date: Thu Jan 01 00:00:01 1970 +0000
65 summary: a
73 summary: a
@@ -68,10 +76,10 b''
68 one rename
76 one rename
69
77
70 $ hg log -vf a
78 $ hg log -vf a
71 changeset: 0:8580ff50825a
79 changeset: 0:9161b9aeaf16
72 user: test
80 user: test
73 date: Thu Jan 01 00:00:01 1970 +0000
81 date: Thu Jan 01 00:00:01 1970 +0000
74 files: a
82 files: a f
75 description:
83 description:
76 a
84 a
77
85
@@ -80,7 +88,7 b' one rename'
80 many renames
88 many renames
81
89
82 $ hg log -vf e
90 $ hg log -vf e
83 changeset: 4:66c1345dc4f9
91 changeset: 4:7e4639b4691b
84 tag: tip
92 tag: tip
85 user: test
93 user: test
86 date: Thu Jan 01 00:00:05 1970 +0000
94 date: Thu Jan 01 00:00:05 1970 +0000
@@ -89,26 +97,26 b' many renames'
89 e
97 e
90
98
91
99
92 changeset: 2:41dd4284081e
100 changeset: 2:f8954cd4dc1f
93 user: test
101 user: test
94 date: Thu Jan 01 00:00:03 1970 +0000
102 date: Thu Jan 01 00:00:03 1970 +0000
95 files: b dir/b
103 files: b dir/b f g
96 description:
104 description:
97 c
105 c
98
106
99
107
100 changeset: 1:784de7cef101
108 changeset: 1:d89b0a12d229
101 user: test
109 user: test
102 date: Thu Jan 01 00:00:02 1970 +0000
110 date: Thu Jan 01 00:00:02 1970 +0000
103 files: b
111 files: b g
104 description:
112 description:
105 b
113 b
106
114
107
115
108 changeset: 0:8580ff50825a
116 changeset: 0:9161b9aeaf16
109 user: test
117 user: test
110 date: Thu Jan 01 00:00:01 1970 +0000
118 date: Thu Jan 01 00:00:01 1970 +0000
111 files: a
119 files: a f
112 description:
120 description:
113 a
121 a
114
122
@@ -118,34 +126,34 b' many renames'
118 log -pf dir/b
126 log -pf dir/b
119
127
120 $ hg log -pf dir/b
128 $ hg log -pf dir/b
121 changeset: 2:41dd4284081e
129 changeset: 2:f8954cd4dc1f
122 user: test
130 user: test
123 date: Thu Jan 01 00:00:03 1970 +0000
131 date: Thu Jan 01 00:00:03 1970 +0000
124 summary: c
132 summary: c
125
133
126 diff -r 784de7cef101 -r 41dd4284081e dir/b
134 diff -r d89b0a12d229 -r f8954cd4dc1f dir/b
127 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
135 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
128 +++ b/dir/b Thu Jan 01 00:00:03 1970 +0000
136 +++ b/dir/b Thu Jan 01 00:00:03 1970 +0000
129 @@ -0,0 +1,1 @@
137 @@ -0,0 +1,1 @@
130 +a
138 +a
131
139
132 changeset: 1:784de7cef101
140 changeset: 1:d89b0a12d229
133 user: test
141 user: test
134 date: Thu Jan 01 00:00:02 1970 +0000
142 date: Thu Jan 01 00:00:02 1970 +0000
135 summary: b
143 summary: b
136
144
137 diff -r 8580ff50825a -r 784de7cef101 b
145 diff -r 9161b9aeaf16 -r d89b0a12d229 b
138 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
146 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
139 +++ b/b Thu Jan 01 00:00:02 1970 +0000
147 +++ b/b Thu Jan 01 00:00:02 1970 +0000
140 @@ -0,0 +1,1 @@
148 @@ -0,0 +1,1 @@
141 +a
149 +a
142
150
143 changeset: 0:8580ff50825a
151 changeset: 0:9161b9aeaf16
144 user: test
152 user: test
145 date: Thu Jan 01 00:00:01 1970 +0000
153 date: Thu Jan 01 00:00:01 1970 +0000
146 summary: a
154 summary: a
147
155
148 diff -r 000000000000 -r 8580ff50825a a
156 diff -r 000000000000 -r 9161b9aeaf16 a
149 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
157 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
150 +++ b/a Thu Jan 01 00:00:01 1970 +0000
158 +++ b/a Thu Jan 01 00:00:01 1970 +0000
151 @@ -0,0 +1,1 @@
159 @@ -0,0 +1,1 @@
@@ -155,26 +163,26 b' log -pf dir/b'
155 log -vf dir/b
163 log -vf dir/b
156
164
157 $ hg log -vf dir/b
165 $ hg log -vf dir/b
158 changeset: 2:41dd4284081e
166 changeset: 2:f8954cd4dc1f
159 user: test
167 user: test
160 date: Thu Jan 01 00:00:03 1970 +0000
168 date: Thu Jan 01 00:00:03 1970 +0000
161 files: b dir/b
169 files: b dir/b f g
162 description:
170 description:
163 c
171 c
164
172
165
173
166 changeset: 1:784de7cef101
174 changeset: 1:d89b0a12d229
167 user: test
175 user: test
168 date: Thu Jan 01 00:00:02 1970 +0000
176 date: Thu Jan 01 00:00:02 1970 +0000
169 files: b
177 files: b g
170 description:
178 description:
171 b
179 b
172
180
173
181
174 changeset: 0:8580ff50825a
182 changeset: 0:9161b9aeaf16
175 user: test
183 user: test
176 date: Thu Jan 01 00:00:01 1970 +0000
184 date: Thu Jan 01 00:00:01 1970 +0000
177 files: a
185 files: a f
178 description:
186 description:
179 a
187 a
180
188
@@ -185,9 +193,9 b' log copies with --copies'
185
193
186 $ hg log -vC --template '{rev} {file_copies}\n'
194 $ hg log -vC --template '{rev} {file_copies}\n'
187 4 e (dir/b)
195 4 e (dir/b)
188 3 b (a)
196 3 b (a)g (f)
189 2 dir/b (b)
197 2 dir/b (b)
190 1 b (a)
198 1 b (a)g (f)
191 0
199 0
192
200
193 log copies switch without --copies, with old filecopy template
201 log copies switch without --copies, with old filecopy template
@@ -203,16 +211,16 b' log copies switch with --copies'
203
211
204 $ hg log -vC --template '{rev} {file_copies_switch}\n'
212 $ hg log -vC --template '{rev} {file_copies_switch}\n'
205 4 e (dir/b)
213 4 e (dir/b)
206 3 b (a)
214 3 b (a)g (f)
207 2 dir/b (b)
215 2 dir/b (b)
208 1 b (a)
216 1 b (a)g (f)
209 0
217 0
210
218
211
219
212 log copies with hardcoded style and with --style=default
220 log copies with hardcoded style and with --style=default
213
221
214 $ hg log -vC -r4
222 $ hg log -vC -r4
215 changeset: 4:66c1345dc4f9
223 changeset: 4:7e4639b4691b
216 tag: tip
224 tag: tip
217 user: test
225 user: test
218 date: Thu Jan 01 00:00:05 1970 +0000
226 date: Thu Jan 01 00:00:05 1970 +0000
@@ -223,7 +231,7 b' log copies with hardcoded style and with'
223
231
224
232
225 $ hg log -vC -r4 --style=default
233 $ hg log -vC -r4 --style=default
226 changeset: 4:66c1345dc4f9
234 changeset: 4:7e4639b4691b
227 tag: tip
235 tag: tip
228 user: test
236 user: test
229 date: Thu Jan 01 00:00:05 1970 +0000
237 date: Thu Jan 01 00:00:05 1970 +0000
@@ -259,15 +267,15 b' log copies, execute bit set'
259 log -p d
267 log -p d
260
268
261 $ hg log -pv d
269 $ hg log -pv d
262 changeset: 3:7c6c671bb7cc
270 changeset: 3:2ca5ba701980
263 user: test
271 user: test
264 date: Thu Jan 01 00:00:04 1970 +0000
272 date: Thu Jan 01 00:00:04 1970 +0000
265 files: a b d
273 files: a b d g
266 description:
274 description:
267 d
275 d
268
276
269
277
270 diff -r 41dd4284081e -r 7c6c671bb7cc d
278 diff -r f8954cd4dc1f -r 2ca5ba701980 d
271 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
279 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
272 +++ b/d Thu Jan 01 00:00:04 1970 +0000
280 +++ b/d Thu Jan 01 00:00:04 1970 +0000
273 @@ -0,0 +1,1 @@
281 @@ -0,0 +1,1 @@
@@ -278,18 +286,18 b' log -p d'
278 log --removed file
286 log --removed file
279
287
280 $ hg log --removed -v a
288 $ hg log --removed -v a
281 changeset: 3:7c6c671bb7cc
289 changeset: 3:2ca5ba701980
282 user: test
290 user: test
283 date: Thu Jan 01 00:00:04 1970 +0000
291 date: Thu Jan 01 00:00:04 1970 +0000
284 files: a b d
292 files: a b d g
285 description:
293 description:
286 d
294 d
287
295
288
296
289 changeset: 0:8580ff50825a
297 changeset: 0:9161b9aeaf16
290 user: test
298 user: test
291 date: Thu Jan 01 00:00:01 1970 +0000
299 date: Thu Jan 01 00:00:01 1970 +0000
292 files: a
300 files: a f
293 description:
301 description:
294 a
302 a
295
303
@@ -298,10 +306,10 b' log --removed file'
298 log --removed revrange file
306 log --removed revrange file
299
307
300 $ hg log --removed -v -r0:2 a
308 $ hg log --removed -v -r0:2 a
301 changeset: 0:8580ff50825a
309 changeset: 0:9161b9aeaf16
302 user: test
310 user: test
303 date: Thu Jan 01 00:00:01 1970 +0000
311 date: Thu Jan 01 00:00:01 1970 +0000
304 files: a
312 files: a f
305 description:
313 description:
306 a
314 a
307
315
General Comments 0
You need to be logged in to leave comments. Login now