Show More
@@ -1,1214 +1,1222 | |||||
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 |
$ |
|
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' | |
21 |
|
29 | |||
22 | $ hg mv dir/b e |
|
30 | $ hg mv dir/b e | |
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: |
|
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 | |
30 |
|
38 | |||
31 |
|
39 | |||
32 | -f, directory |
|
40 | -f, directory | |
33 |
|
41 | |||
34 | $ hg log -f dir |
|
42 | $ hg log -f dir | |
35 | abort: cannot follow nonexistent file: "dir" |
|
43 | abort: cannot follow nonexistent file: "dir" | |
36 | [255] |
|
44 | [255] | |
37 |
|
45 | |||
38 | -f, but no args |
|
46 | -f, but no args | |
39 |
|
47 | |||
40 | $ hg log -f |
|
48 | $ hg log -f | |
41 |
changeset: 4: |
|
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: |
|
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: |
|
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: |
|
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: |
|
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 | |
66 |
|
74 | |||
67 |
|
75 | |||
68 | one rename |
|
76 | one rename | |
69 |
|
77 | |||
70 | $ hg log -vf a |
|
78 | $ hg log -vf a | |
71 |
changeset: 0: |
|
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 | |||
78 |
|
86 | |||
79 |
|
87 | |||
80 | many renames |
|
88 | many renames | |
81 |
|
89 | |||
82 | $ hg log -vf e |
|
90 | $ hg log -vf e | |
83 |
changeset: 4: |
|
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 | |
87 | files: dir/b e |
|
95 | files: dir/b e | |
88 | description: |
|
96 | description: | |
89 | e |
|
97 | e | |
90 |
|
98 | |||
91 |
|
99 | |||
92 |
changeset: 2: |
|
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: |
|
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: |
|
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 | |||
115 |
|
123 | |||
116 |
|
124 | |||
117 |
|
125 | |||
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: |
|
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: |
|
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: |
|
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 |
|
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 @@ | |
152 | +a |
|
160 | +a | |
153 |
|
161 | |||
154 |
|
162 | |||
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: |
|
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: |
|
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: |
|
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 | |||
181 |
|
189 | |||
182 |
|
190 | |||
183 |
|
191 | |||
184 | log copies with --copies |
|
192 | 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 | |
194 |
|
202 | |||
195 | $ hg log -v --template '{rev} {file_copies_switch%filecopy}\n' |
|
203 | $ hg log -v --template '{rev} {file_copies_switch%filecopy}\n' | |
196 | 4 |
|
204 | 4 | |
197 | 3 |
|
205 | 3 | |
198 | 2 |
|
206 | 2 | |
199 | 1 |
|
207 | 1 | |
200 | 0 |
|
208 | 0 | |
201 |
|
209 | |||
202 | log copies switch with --copies |
|
210 | 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: |
|
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 | |
219 | files: dir/b e |
|
227 | files: dir/b e | |
220 | copies: e (dir/b) |
|
228 | copies: e (dir/b) | |
221 | description: |
|
229 | description: | |
222 | e |
|
230 | e | |
223 |
|
231 | |||
224 |
|
232 | |||
225 | $ hg log -vC -r4 --style=default |
|
233 | $ hg log -vC -r4 --style=default | |
226 |
changeset: 4: |
|
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 | |
230 | files: dir/b e |
|
238 | files: dir/b e | |
231 | copies: e (dir/b) |
|
239 | copies: e (dir/b) | |
232 | description: |
|
240 | description: | |
233 | e |
|
241 | e | |
234 |
|
242 | |||
235 |
|
243 | |||
236 |
|
244 | |||
237 |
|
245 | |||
238 | log copies, non-linear manifest |
|
246 | log copies, non-linear manifest | |
239 |
|
247 | |||
240 | $ hg up -C 3 |
|
248 | $ hg up -C 3 | |
241 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
249 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
242 | $ hg mv dir/b e |
|
250 | $ hg mv dir/b e | |
243 | $ echo foo > foo |
|
251 | $ echo foo > foo | |
244 | $ hg ci -Ame2 -d '6 0' |
|
252 | $ hg ci -Ame2 -d '6 0' | |
245 | adding foo |
|
253 | adding foo | |
246 | created new head |
|
254 | created new head | |
247 | $ hg log -v --template '{rev} {file_copies}\n' -r 5 |
|
255 | $ hg log -v --template '{rev} {file_copies}\n' -r 5 | |
248 | 5 e (dir/b) |
|
256 | 5 e (dir/b) | |
249 |
|
257 | |||
250 |
|
258 | |||
251 | log copies, execute bit set |
|
259 | log copies, execute bit set | |
252 |
|
260 | |||
253 | $ chmod +x e |
|
261 | $ chmod +x e | |
254 | $ hg ci -me3 -d '7 0' |
|
262 | $ hg ci -me3 -d '7 0' | |
255 | $ hg log -v --template '{rev} {file_copies}\n' -r 6 |
|
263 | $ hg log -v --template '{rev} {file_copies}\n' -r 6 | |
256 | 6 |
|
264 | 6 | |
257 |
|
265 | |||
258 |
|
266 | |||
259 | log -p d |
|
267 | log -p d | |
260 |
|
268 | |||
261 | $ hg log -pv d |
|
269 | $ hg log -pv d | |
262 |
changeset: 3: |
|
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 @@ | |
274 | +a |
|
282 | +a | |
275 |
|
283 | |||
276 |
|
284 | |||
277 |
|
285 | |||
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: |
|
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: |
|
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 | |||
296 |
|
304 | |||
297 |
|
305 | |||
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: |
|
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 | |||
308 |
|
316 | |||
309 |
|
317 | |||
310 |
|
318 | |||
311 | log --follow tests |
|
319 | log --follow tests | |
312 |
|
320 | |||
313 | $ hg init ../follow |
|
321 | $ hg init ../follow | |
314 | $ cd ../follow |
|
322 | $ cd ../follow | |
315 |
|
323 | |||
316 | $ echo base > base |
|
324 | $ echo base > base | |
317 | $ hg ci -Ambase -d '1 0' |
|
325 | $ hg ci -Ambase -d '1 0' | |
318 | adding base |
|
326 | adding base | |
319 |
|
327 | |||
320 | $ echo r1 >> base |
|
328 | $ echo r1 >> base | |
321 | $ hg ci -Amr1 -d '1 0' |
|
329 | $ hg ci -Amr1 -d '1 0' | |
322 | $ echo r2 >> base |
|
330 | $ echo r2 >> base | |
323 | $ hg ci -Amr2 -d '1 0' |
|
331 | $ hg ci -Amr2 -d '1 0' | |
324 |
|
332 | |||
325 | $ hg up -C 1 |
|
333 | $ hg up -C 1 | |
326 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
334 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
327 | $ echo b1 > b1 |
|
335 | $ echo b1 > b1 | |
328 | $ hg ci -Amb1 -d '1 0' |
|
336 | $ hg ci -Amb1 -d '1 0' | |
329 | adding b1 |
|
337 | adding b1 | |
330 | created new head |
|
338 | created new head | |
331 |
|
339 | |||
332 |
|
340 | |||
333 | log -f |
|
341 | log -f | |
334 |
|
342 | |||
335 | $ hg log -f |
|
343 | $ hg log -f | |
336 | changeset: 3:e62f78d544b4 |
|
344 | changeset: 3:e62f78d544b4 | |
337 | tag: tip |
|
345 | tag: tip | |
338 | parent: 1:3d5bf5654eda |
|
346 | parent: 1:3d5bf5654eda | |
339 | user: test |
|
347 | user: test | |
340 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
348 | date: Thu Jan 01 00:00:01 1970 +0000 | |
341 | summary: b1 |
|
349 | summary: b1 | |
342 |
|
350 | |||
343 | changeset: 1:3d5bf5654eda |
|
351 | changeset: 1:3d5bf5654eda | |
344 | user: test |
|
352 | user: test | |
345 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
353 | date: Thu Jan 01 00:00:01 1970 +0000 | |
346 | summary: r1 |
|
354 | summary: r1 | |
347 |
|
355 | |||
348 | changeset: 0:67e992f2c4f3 |
|
356 | changeset: 0:67e992f2c4f3 | |
349 | user: test |
|
357 | user: test | |
350 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
358 | date: Thu Jan 01 00:00:01 1970 +0000 | |
351 | summary: base |
|
359 | summary: base | |
352 |
|
360 | |||
353 |
|
361 | |||
354 |
|
362 | |||
355 | log -f -r 1:tip |
|
363 | log -f -r 1:tip | |
356 |
|
364 | |||
357 | $ hg up -C 0 |
|
365 | $ hg up -C 0 | |
358 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
366 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
359 | $ echo b2 > b2 |
|
367 | $ echo b2 > b2 | |
360 | $ hg ci -Amb2 -d '1 0' |
|
368 | $ hg ci -Amb2 -d '1 0' | |
361 | adding b2 |
|
369 | adding b2 | |
362 | created new head |
|
370 | created new head | |
363 | $ hg log -f -r 1:tip |
|
371 | $ hg log -f -r 1:tip | |
364 | changeset: 1:3d5bf5654eda |
|
372 | changeset: 1:3d5bf5654eda | |
365 | user: test |
|
373 | user: test | |
366 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
374 | date: Thu Jan 01 00:00:01 1970 +0000 | |
367 | summary: r1 |
|
375 | summary: r1 | |
368 |
|
376 | |||
369 | changeset: 2:60c670bf5b30 |
|
377 | changeset: 2:60c670bf5b30 | |
370 | user: test |
|
378 | user: test | |
371 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
379 | date: Thu Jan 01 00:00:01 1970 +0000 | |
372 | summary: r2 |
|
380 | summary: r2 | |
373 |
|
381 | |||
374 | changeset: 3:e62f78d544b4 |
|
382 | changeset: 3:e62f78d544b4 | |
375 | parent: 1:3d5bf5654eda |
|
383 | parent: 1:3d5bf5654eda | |
376 | user: test |
|
384 | user: test | |
377 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
385 | date: Thu Jan 01 00:00:01 1970 +0000 | |
378 | summary: b1 |
|
386 | summary: b1 | |
379 |
|
387 | |||
380 |
|
388 | |||
381 |
|
389 | |||
382 | log -r . with two parents |
|
390 | log -r . with two parents | |
383 |
|
391 | |||
384 | $ hg up -C 3 |
|
392 | $ hg up -C 3 | |
385 | 2 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
393 | 2 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
386 | $ hg merge tip |
|
394 | $ hg merge tip | |
387 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
395 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
388 | (branch merge, don't forget to commit) |
|
396 | (branch merge, don't forget to commit) | |
389 | $ hg log -r . |
|
397 | $ hg log -r . | |
390 | changeset: 3:e62f78d544b4 |
|
398 | changeset: 3:e62f78d544b4 | |
391 | parent: 1:3d5bf5654eda |
|
399 | parent: 1:3d5bf5654eda | |
392 | user: test |
|
400 | user: test | |
393 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
401 | date: Thu Jan 01 00:00:01 1970 +0000 | |
394 | summary: b1 |
|
402 | summary: b1 | |
395 |
|
403 | |||
396 |
|
404 | |||
397 |
|
405 | |||
398 | log -r . with one parent |
|
406 | log -r . with one parent | |
399 |
|
407 | |||
400 | $ hg ci -mm12 -d '1 0' |
|
408 | $ hg ci -mm12 -d '1 0' | |
401 | $ hg log -r . |
|
409 | $ hg log -r . | |
402 | changeset: 5:302e9dd6890d |
|
410 | changeset: 5:302e9dd6890d | |
403 | tag: tip |
|
411 | tag: tip | |
404 | parent: 3:e62f78d544b4 |
|
412 | parent: 3:e62f78d544b4 | |
405 | parent: 4:ddb82e70d1a1 |
|
413 | parent: 4:ddb82e70d1a1 | |
406 | user: test |
|
414 | user: test | |
407 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
415 | date: Thu Jan 01 00:00:01 1970 +0000 | |
408 | summary: m12 |
|
416 | summary: m12 | |
409 |
|
417 | |||
410 |
|
418 | |||
411 | $ echo postm >> b1 |
|
419 | $ echo postm >> b1 | |
412 | $ hg ci -Amb1.1 -d'1 0' |
|
420 | $ hg ci -Amb1.1 -d'1 0' | |
413 |
|
421 | |||
414 |
|
422 | |||
415 | log --follow-first |
|
423 | log --follow-first | |
416 |
|
424 | |||
417 | $ hg log --follow-first |
|
425 | $ hg log --follow-first | |
418 | changeset: 6:2404bbcab562 |
|
426 | changeset: 6:2404bbcab562 | |
419 | tag: tip |
|
427 | tag: tip | |
420 | user: test |
|
428 | user: test | |
421 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
429 | date: Thu Jan 01 00:00:01 1970 +0000 | |
422 | summary: b1.1 |
|
430 | summary: b1.1 | |
423 |
|
431 | |||
424 | changeset: 5:302e9dd6890d |
|
432 | changeset: 5:302e9dd6890d | |
425 | parent: 3:e62f78d544b4 |
|
433 | parent: 3:e62f78d544b4 | |
426 | parent: 4:ddb82e70d1a1 |
|
434 | parent: 4:ddb82e70d1a1 | |
427 | user: test |
|
435 | user: test | |
428 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
436 | date: Thu Jan 01 00:00:01 1970 +0000 | |
429 | summary: m12 |
|
437 | summary: m12 | |
430 |
|
438 | |||
431 | changeset: 3:e62f78d544b4 |
|
439 | changeset: 3:e62f78d544b4 | |
432 | parent: 1:3d5bf5654eda |
|
440 | parent: 1:3d5bf5654eda | |
433 | user: test |
|
441 | user: test | |
434 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
442 | date: Thu Jan 01 00:00:01 1970 +0000 | |
435 | summary: b1 |
|
443 | summary: b1 | |
436 |
|
444 | |||
437 | changeset: 1:3d5bf5654eda |
|
445 | changeset: 1:3d5bf5654eda | |
438 | user: test |
|
446 | user: test | |
439 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
447 | date: Thu Jan 01 00:00:01 1970 +0000 | |
440 | summary: r1 |
|
448 | summary: r1 | |
441 |
|
449 | |||
442 | changeset: 0:67e992f2c4f3 |
|
450 | changeset: 0:67e992f2c4f3 | |
443 | user: test |
|
451 | user: test | |
444 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
452 | date: Thu Jan 01 00:00:01 1970 +0000 | |
445 | summary: base |
|
453 | summary: base | |
446 |
|
454 | |||
447 |
|
455 | |||
448 |
|
456 | |||
449 | log -P 2 |
|
457 | log -P 2 | |
450 |
|
458 | |||
451 | $ hg log -P 2 |
|
459 | $ hg log -P 2 | |
452 | changeset: 6:2404bbcab562 |
|
460 | changeset: 6:2404bbcab562 | |
453 | tag: tip |
|
461 | tag: tip | |
454 | user: test |
|
462 | user: test | |
455 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
463 | date: Thu Jan 01 00:00:01 1970 +0000 | |
456 | summary: b1.1 |
|
464 | summary: b1.1 | |
457 |
|
465 | |||
458 | changeset: 5:302e9dd6890d |
|
466 | changeset: 5:302e9dd6890d | |
459 | parent: 3:e62f78d544b4 |
|
467 | parent: 3:e62f78d544b4 | |
460 | parent: 4:ddb82e70d1a1 |
|
468 | parent: 4:ddb82e70d1a1 | |
461 | user: test |
|
469 | user: test | |
462 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
470 | date: Thu Jan 01 00:00:01 1970 +0000 | |
463 | summary: m12 |
|
471 | summary: m12 | |
464 |
|
472 | |||
465 | changeset: 4:ddb82e70d1a1 |
|
473 | changeset: 4:ddb82e70d1a1 | |
466 | parent: 0:67e992f2c4f3 |
|
474 | parent: 0:67e992f2c4f3 | |
467 | user: test |
|
475 | user: test | |
468 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
476 | date: Thu Jan 01 00:00:01 1970 +0000 | |
469 | summary: b2 |
|
477 | summary: b2 | |
470 |
|
478 | |||
471 | changeset: 3:e62f78d544b4 |
|
479 | changeset: 3:e62f78d544b4 | |
472 | parent: 1:3d5bf5654eda |
|
480 | parent: 1:3d5bf5654eda | |
473 | user: test |
|
481 | user: test | |
474 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
482 | date: Thu Jan 01 00:00:01 1970 +0000 | |
475 | summary: b1 |
|
483 | summary: b1 | |
476 |
|
484 | |||
477 |
|
485 | |||
478 |
|
486 | |||
479 | log -r tip -p --git |
|
487 | log -r tip -p --git | |
480 |
|
488 | |||
481 | $ hg log -r tip -p --git |
|
489 | $ hg log -r tip -p --git | |
482 | changeset: 6:2404bbcab562 |
|
490 | changeset: 6:2404bbcab562 | |
483 | tag: tip |
|
491 | tag: tip | |
484 | user: test |
|
492 | user: test | |
485 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
493 | date: Thu Jan 01 00:00:01 1970 +0000 | |
486 | summary: b1.1 |
|
494 | summary: b1.1 | |
487 |
|
495 | |||
488 | diff --git a/b1 b/b1 |
|
496 | diff --git a/b1 b/b1 | |
489 | --- a/b1 |
|
497 | --- a/b1 | |
490 | +++ b/b1 |
|
498 | +++ b/b1 | |
491 | @@ -1,1 +1,2 @@ |
|
499 | @@ -1,1 +1,2 @@ | |
492 | b1 |
|
500 | b1 | |
493 | +postm |
|
501 | +postm | |
494 |
|
502 | |||
495 |
|
503 | |||
496 |
|
504 | |||
497 | log -r "" |
|
505 | log -r "" | |
498 |
|
506 | |||
499 | $ hg log -r '' |
|
507 | $ hg log -r '' | |
500 | hg: parse error: empty query |
|
508 | hg: parse error: empty query | |
501 | [255] |
|
509 | [255] | |
502 |
|
510 | |||
503 | log -r <some unknown node id> |
|
511 | log -r <some unknown node id> | |
504 |
|
512 | |||
505 | $ hg log -r 1000000000000000000000000000000000000000 |
|
513 | $ hg log -r 1000000000000000000000000000000000000000 | |
506 | abort: unknown revision '1000000000000000000000000000000000000000'! |
|
514 | abort: unknown revision '1000000000000000000000000000000000000000'! | |
507 | [255] |
|
515 | [255] | |
508 |
|
516 | |||
509 | log -k r1 |
|
517 | log -k r1 | |
510 |
|
518 | |||
511 | $ hg log -k r1 |
|
519 | $ hg log -k r1 | |
512 | changeset: 1:3d5bf5654eda |
|
520 | changeset: 1:3d5bf5654eda | |
513 | user: test |
|
521 | user: test | |
514 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
522 | date: Thu Jan 01 00:00:01 1970 +0000 | |
515 | summary: r1 |
|
523 | summary: r1 | |
516 |
|
524 | |||
517 | log -d " " (whitespaces only) |
|
525 | log -d " " (whitespaces only) | |
518 |
|
526 | |||
519 | $ hg log -d " " |
|
527 | $ hg log -d " " | |
520 | abort: dates cannot consist entirely of whitespace |
|
528 | abort: dates cannot consist entirely of whitespace | |
521 | [255] |
|
529 | [255] | |
522 |
|
530 | |||
523 | log -d -1 |
|
531 | log -d -1 | |
524 |
|
532 | |||
525 | $ hg log -d -1 |
|
533 | $ hg log -d -1 | |
526 |
|
534 | |||
527 | log -d ">" |
|
535 | log -d ">" | |
528 |
|
536 | |||
529 | $ hg log -d ">" |
|
537 | $ hg log -d ">" | |
530 | abort: invalid day spec, use '>DATE' |
|
538 | abort: invalid day spec, use '>DATE' | |
531 | [255] |
|
539 | [255] | |
532 |
|
540 | |||
533 | log -d "<" |
|
541 | log -d "<" | |
534 |
|
542 | |||
535 | $ hg log -d "<" |
|
543 | $ hg log -d "<" | |
536 | abort: invalid day spec, use '<DATE' |
|
544 | abort: invalid day spec, use '<DATE' | |
537 | [255] |
|
545 | [255] | |
538 |
|
546 | |||
539 | Negative ranges |
|
547 | Negative ranges | |
540 | $ hg log -d "--2" |
|
548 | $ hg log -d "--2" | |
541 | abort: -2 must be nonnegative (see 'hg help dates') |
|
549 | abort: -2 must be nonnegative (see 'hg help dates') | |
542 | [255] |
|
550 | [255] | |
543 |
|
551 | |||
544 |
|
552 | |||
545 | log -p -l2 --color=always |
|
553 | log -p -l2 --color=always | |
546 |
|
554 | |||
547 | $ hg --config extensions.color= --config color.mode=ansi \ |
|
555 | $ hg --config extensions.color= --config color.mode=ansi \ | |
548 | > log -p -l2 --color=always |
|
556 | > log -p -l2 --color=always | |
549 | \x1b[0;33mchangeset: 6:2404bbcab562\x1b[0m (esc) |
|
557 | \x1b[0;33mchangeset: 6:2404bbcab562\x1b[0m (esc) | |
550 | tag: tip |
|
558 | tag: tip | |
551 | user: test |
|
559 | user: test | |
552 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
560 | date: Thu Jan 01 00:00:01 1970 +0000 | |
553 | summary: b1.1 |
|
561 | summary: b1.1 | |
554 |
|
562 | |||
555 | \x1b[0;1mdiff -r 302e9dd6890d -r 2404bbcab562 b1\x1b[0m (esc) |
|
563 | \x1b[0;1mdiff -r 302e9dd6890d -r 2404bbcab562 b1\x1b[0m (esc) | |
556 | \x1b[0;31;1m--- a/b1 Thu Jan 01 00:00:01 1970 +0000\x1b[0m (esc) |
|
564 | \x1b[0;31;1m--- a/b1 Thu Jan 01 00:00:01 1970 +0000\x1b[0m (esc) | |
557 | \x1b[0;32;1m+++ b/b1 Thu Jan 01 00:00:01 1970 +0000\x1b[0m (esc) |
|
565 | \x1b[0;32;1m+++ b/b1 Thu Jan 01 00:00:01 1970 +0000\x1b[0m (esc) | |
558 | \x1b[0;35m@@ -1,1 +1,2 @@\x1b[0m (esc) |
|
566 | \x1b[0;35m@@ -1,1 +1,2 @@\x1b[0m (esc) | |
559 | b1 |
|
567 | b1 | |
560 | \x1b[0;32m+postm\x1b[0m (esc) |
|
568 | \x1b[0;32m+postm\x1b[0m (esc) | |
561 |
|
569 | |||
562 | \x1b[0;33mchangeset: 5:302e9dd6890d\x1b[0m (esc) |
|
570 | \x1b[0;33mchangeset: 5:302e9dd6890d\x1b[0m (esc) | |
563 | parent: 3:e62f78d544b4 |
|
571 | parent: 3:e62f78d544b4 | |
564 | parent: 4:ddb82e70d1a1 |
|
572 | parent: 4:ddb82e70d1a1 | |
565 | user: test |
|
573 | user: test | |
566 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
574 | date: Thu Jan 01 00:00:01 1970 +0000 | |
567 | summary: m12 |
|
575 | summary: m12 | |
568 |
|
576 | |||
569 | \x1b[0;1mdiff -r e62f78d544b4 -r 302e9dd6890d b2\x1b[0m (esc) |
|
577 | \x1b[0;1mdiff -r e62f78d544b4 -r 302e9dd6890d b2\x1b[0m (esc) | |
570 | \x1b[0;31;1m--- /dev/null Thu Jan 01 00:00:00 1970 +0000\x1b[0m (esc) |
|
578 | \x1b[0;31;1m--- /dev/null Thu Jan 01 00:00:00 1970 +0000\x1b[0m (esc) | |
571 | \x1b[0;32;1m+++ b/b2 Thu Jan 01 00:00:01 1970 +0000\x1b[0m (esc) |
|
579 | \x1b[0;32;1m+++ b/b2 Thu Jan 01 00:00:01 1970 +0000\x1b[0m (esc) | |
572 | \x1b[0;35m@@ -0,0 +1,1 @@\x1b[0m (esc) |
|
580 | \x1b[0;35m@@ -0,0 +1,1 @@\x1b[0m (esc) | |
573 | \x1b[0;32m+b2\x1b[0m (esc) |
|
581 | \x1b[0;32m+b2\x1b[0m (esc) | |
574 |
|
582 | |||
575 |
|
583 | |||
576 |
|
584 | |||
577 | log -r tip --stat |
|
585 | log -r tip --stat | |
578 |
|
586 | |||
579 | $ hg log -r tip --stat |
|
587 | $ hg log -r tip --stat | |
580 | changeset: 6:2404bbcab562 |
|
588 | changeset: 6:2404bbcab562 | |
581 | tag: tip |
|
589 | tag: tip | |
582 | user: test |
|
590 | user: test | |
583 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
591 | date: Thu Jan 01 00:00:01 1970 +0000 | |
584 | summary: b1.1 |
|
592 | summary: b1.1 | |
585 |
|
593 | |||
586 | b1 | 1 + |
|
594 | b1 | 1 + | |
587 | 1 files changed, 1 insertions(+), 0 deletions(-) |
|
595 | 1 files changed, 1 insertions(+), 0 deletions(-) | |
588 |
|
596 | |||
589 |
|
597 | |||
590 | $ cd .. |
|
598 | $ cd .. | |
591 |
|
599 | |||
592 | $ hg init usertest |
|
600 | $ hg init usertest | |
593 | $ cd usertest |
|
601 | $ cd usertest | |
594 |
|
602 | |||
595 | $ echo a > a |
|
603 | $ echo a > a | |
596 | $ hg ci -A -m "a" -u "User One <user1@example.org>" |
|
604 | $ hg ci -A -m "a" -u "User One <user1@example.org>" | |
597 | adding a |
|
605 | adding a | |
598 | $ echo b > b |
|
606 | $ echo b > b | |
599 | $ hg ci -A -m "b" -u "User Two <user2@example.org>" |
|
607 | $ hg ci -A -m "b" -u "User Two <user2@example.org>" | |
600 | adding b |
|
608 | adding b | |
601 |
|
609 | |||
602 | $ hg log -u "User One <user1@example.org>" |
|
610 | $ hg log -u "User One <user1@example.org>" | |
603 | changeset: 0:29a4c94f1924 |
|
611 | changeset: 0:29a4c94f1924 | |
604 | user: User One <user1@example.org> |
|
612 | user: User One <user1@example.org> | |
605 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
613 | date: Thu Jan 01 00:00:00 1970 +0000 | |
606 | summary: a |
|
614 | summary: a | |
607 |
|
615 | |||
608 | $ hg log -u "user1" -u "user2" |
|
616 | $ hg log -u "user1" -u "user2" | |
609 | changeset: 1:e834b5e69c0e |
|
617 | changeset: 1:e834b5e69c0e | |
610 | tag: tip |
|
618 | tag: tip | |
611 | user: User Two <user2@example.org> |
|
619 | user: User Two <user2@example.org> | |
612 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
620 | date: Thu Jan 01 00:00:00 1970 +0000 | |
613 | summary: b |
|
621 | summary: b | |
614 |
|
622 | |||
615 | changeset: 0:29a4c94f1924 |
|
623 | changeset: 0:29a4c94f1924 | |
616 | user: User One <user1@example.org> |
|
624 | user: User One <user1@example.org> | |
617 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
625 | date: Thu Jan 01 00:00:00 1970 +0000 | |
618 | summary: a |
|
626 | summary: a | |
619 |
|
627 | |||
620 | $ hg log -u "user3" |
|
628 | $ hg log -u "user3" | |
621 |
|
629 | |||
622 | $ cd .. |
|
630 | $ cd .. | |
623 |
|
631 | |||
624 | $ hg init branches |
|
632 | $ hg init branches | |
625 | $ cd branches |
|
633 | $ cd branches | |
626 |
|
634 | |||
627 | $ echo a > a |
|
635 | $ echo a > a | |
628 | $ hg ci -A -m "commit on default" |
|
636 | $ hg ci -A -m "commit on default" | |
629 | adding a |
|
637 | adding a | |
630 | $ hg branch test |
|
638 | $ hg branch test | |
631 | marked working directory as branch test |
|
639 | marked working directory as branch test | |
632 | (branches are permanent and global, did you want a bookmark?) |
|
640 | (branches are permanent and global, did you want a bookmark?) | |
633 | $ echo b > b |
|
641 | $ echo b > b | |
634 | $ hg ci -A -m "commit on test" |
|
642 | $ hg ci -A -m "commit on test" | |
635 | adding b |
|
643 | adding b | |
636 |
|
644 | |||
637 | $ hg up default |
|
645 | $ hg up default | |
638 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
646 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
639 | $ echo c > c |
|
647 | $ echo c > c | |
640 | $ hg ci -A -m "commit on default" |
|
648 | $ hg ci -A -m "commit on default" | |
641 | adding c |
|
649 | adding c | |
642 | $ hg up test |
|
650 | $ hg up test | |
643 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
651 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
644 | $ echo c > c |
|
652 | $ echo c > c | |
645 | $ hg ci -A -m "commit on test" |
|
653 | $ hg ci -A -m "commit on test" | |
646 | adding c |
|
654 | adding c | |
647 |
|
655 | |||
648 |
|
656 | |||
649 | log -b default |
|
657 | log -b default | |
650 |
|
658 | |||
651 | $ hg log -b default |
|
659 | $ hg log -b default | |
652 | changeset: 2:c3a4f03cc9a7 |
|
660 | changeset: 2:c3a4f03cc9a7 | |
653 | parent: 0:24427303d56f |
|
661 | parent: 0:24427303d56f | |
654 | user: test |
|
662 | user: test | |
655 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
663 | date: Thu Jan 01 00:00:00 1970 +0000 | |
656 | summary: commit on default |
|
664 | summary: commit on default | |
657 |
|
665 | |||
658 | changeset: 0:24427303d56f |
|
666 | changeset: 0:24427303d56f | |
659 | user: test |
|
667 | user: test | |
660 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
668 | date: Thu Jan 01 00:00:00 1970 +0000 | |
661 | summary: commit on default |
|
669 | summary: commit on default | |
662 |
|
670 | |||
663 |
|
671 | |||
664 |
|
672 | |||
665 | log -b test |
|
673 | log -b test | |
666 |
|
674 | |||
667 | $ hg log -b test |
|
675 | $ hg log -b test | |
668 | changeset: 3:f5d8de11c2e2 |
|
676 | changeset: 3:f5d8de11c2e2 | |
669 | branch: test |
|
677 | branch: test | |
670 | tag: tip |
|
678 | tag: tip | |
671 | parent: 1:d32277701ccb |
|
679 | parent: 1:d32277701ccb | |
672 | user: test |
|
680 | user: test | |
673 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
681 | date: Thu Jan 01 00:00:00 1970 +0000 | |
674 | summary: commit on test |
|
682 | summary: commit on test | |
675 |
|
683 | |||
676 | changeset: 1:d32277701ccb |
|
684 | changeset: 1:d32277701ccb | |
677 | branch: test |
|
685 | branch: test | |
678 | user: test |
|
686 | user: test | |
679 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
687 | date: Thu Jan 01 00:00:00 1970 +0000 | |
680 | summary: commit on test |
|
688 | summary: commit on test | |
681 |
|
689 | |||
682 |
|
690 | |||
683 |
|
691 | |||
684 | log -b dummy |
|
692 | log -b dummy | |
685 |
|
693 | |||
686 | $ hg log -b dummy |
|
694 | $ hg log -b dummy | |
687 | abort: unknown revision 'dummy'! |
|
695 | abort: unknown revision 'dummy'! | |
688 | [255] |
|
696 | [255] | |
689 |
|
697 | |||
690 |
|
698 | |||
691 | log -b . |
|
699 | log -b . | |
692 |
|
700 | |||
693 | $ hg log -b . |
|
701 | $ hg log -b . | |
694 | changeset: 3:f5d8de11c2e2 |
|
702 | changeset: 3:f5d8de11c2e2 | |
695 | branch: test |
|
703 | branch: test | |
696 | tag: tip |
|
704 | tag: tip | |
697 | parent: 1:d32277701ccb |
|
705 | parent: 1:d32277701ccb | |
698 | user: test |
|
706 | user: test | |
699 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
707 | date: Thu Jan 01 00:00:00 1970 +0000 | |
700 | summary: commit on test |
|
708 | summary: commit on test | |
701 |
|
709 | |||
702 | changeset: 1:d32277701ccb |
|
710 | changeset: 1:d32277701ccb | |
703 | branch: test |
|
711 | branch: test | |
704 | user: test |
|
712 | user: test | |
705 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
713 | date: Thu Jan 01 00:00:00 1970 +0000 | |
706 | summary: commit on test |
|
714 | summary: commit on test | |
707 |
|
715 | |||
708 |
|
716 | |||
709 |
|
717 | |||
710 | log -b default -b test |
|
718 | log -b default -b test | |
711 |
|
719 | |||
712 | $ hg log -b default -b test |
|
720 | $ hg log -b default -b test | |
713 | changeset: 3:f5d8de11c2e2 |
|
721 | changeset: 3:f5d8de11c2e2 | |
714 | branch: test |
|
722 | branch: test | |
715 | tag: tip |
|
723 | tag: tip | |
716 | parent: 1:d32277701ccb |
|
724 | parent: 1:d32277701ccb | |
717 | user: test |
|
725 | user: test | |
718 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
726 | date: Thu Jan 01 00:00:00 1970 +0000 | |
719 | summary: commit on test |
|
727 | summary: commit on test | |
720 |
|
728 | |||
721 | changeset: 2:c3a4f03cc9a7 |
|
729 | changeset: 2:c3a4f03cc9a7 | |
722 | parent: 0:24427303d56f |
|
730 | parent: 0:24427303d56f | |
723 | user: test |
|
731 | user: test | |
724 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
732 | date: Thu Jan 01 00:00:00 1970 +0000 | |
725 | summary: commit on default |
|
733 | summary: commit on default | |
726 |
|
734 | |||
727 | changeset: 1:d32277701ccb |
|
735 | changeset: 1:d32277701ccb | |
728 | branch: test |
|
736 | branch: test | |
729 | user: test |
|
737 | user: test | |
730 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
738 | date: Thu Jan 01 00:00:00 1970 +0000 | |
731 | summary: commit on test |
|
739 | summary: commit on test | |
732 |
|
740 | |||
733 | changeset: 0:24427303d56f |
|
741 | changeset: 0:24427303d56f | |
734 | user: test |
|
742 | user: test | |
735 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
743 | date: Thu Jan 01 00:00:00 1970 +0000 | |
736 | summary: commit on default |
|
744 | summary: commit on default | |
737 |
|
745 | |||
738 |
|
746 | |||
739 |
|
747 | |||
740 | log -b default -b . |
|
748 | log -b default -b . | |
741 |
|
749 | |||
742 | $ hg log -b default -b . |
|
750 | $ hg log -b default -b . | |
743 | changeset: 3:f5d8de11c2e2 |
|
751 | changeset: 3:f5d8de11c2e2 | |
744 | branch: test |
|
752 | branch: test | |
745 | tag: tip |
|
753 | tag: tip | |
746 | parent: 1:d32277701ccb |
|
754 | parent: 1:d32277701ccb | |
747 | user: test |
|
755 | user: test | |
748 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
756 | date: Thu Jan 01 00:00:00 1970 +0000 | |
749 | summary: commit on test |
|
757 | summary: commit on test | |
750 |
|
758 | |||
751 | changeset: 2:c3a4f03cc9a7 |
|
759 | changeset: 2:c3a4f03cc9a7 | |
752 | parent: 0:24427303d56f |
|
760 | parent: 0:24427303d56f | |
753 | user: test |
|
761 | user: test | |
754 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
762 | date: Thu Jan 01 00:00:00 1970 +0000 | |
755 | summary: commit on default |
|
763 | summary: commit on default | |
756 |
|
764 | |||
757 | changeset: 1:d32277701ccb |
|
765 | changeset: 1:d32277701ccb | |
758 | branch: test |
|
766 | branch: test | |
759 | user: test |
|
767 | user: test | |
760 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
768 | date: Thu Jan 01 00:00:00 1970 +0000 | |
761 | summary: commit on test |
|
769 | summary: commit on test | |
762 |
|
770 | |||
763 | changeset: 0:24427303d56f |
|
771 | changeset: 0:24427303d56f | |
764 | user: test |
|
772 | user: test | |
765 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
773 | date: Thu Jan 01 00:00:00 1970 +0000 | |
766 | summary: commit on default |
|
774 | summary: commit on default | |
767 |
|
775 | |||
768 |
|
776 | |||
769 |
|
777 | |||
770 | log -b . -b test |
|
778 | log -b . -b test | |
771 |
|
779 | |||
772 | $ hg log -b . -b test |
|
780 | $ hg log -b . -b test | |
773 | changeset: 3:f5d8de11c2e2 |
|
781 | changeset: 3:f5d8de11c2e2 | |
774 | branch: test |
|
782 | branch: test | |
775 | tag: tip |
|
783 | tag: tip | |
776 | parent: 1:d32277701ccb |
|
784 | parent: 1:d32277701ccb | |
777 | user: test |
|
785 | user: test | |
778 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
786 | date: Thu Jan 01 00:00:00 1970 +0000 | |
779 | summary: commit on test |
|
787 | summary: commit on test | |
780 |
|
788 | |||
781 | changeset: 1:d32277701ccb |
|
789 | changeset: 1:d32277701ccb | |
782 | branch: test |
|
790 | branch: test | |
783 | user: test |
|
791 | user: test | |
784 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
792 | date: Thu Jan 01 00:00:00 1970 +0000 | |
785 | summary: commit on test |
|
793 | summary: commit on test | |
786 |
|
794 | |||
787 |
|
795 | |||
788 |
|
796 | |||
789 | log -b 2 |
|
797 | log -b 2 | |
790 |
|
798 | |||
791 | $ hg log -b 2 |
|
799 | $ hg log -b 2 | |
792 | changeset: 2:c3a4f03cc9a7 |
|
800 | changeset: 2:c3a4f03cc9a7 | |
793 | parent: 0:24427303d56f |
|
801 | parent: 0:24427303d56f | |
794 | user: test |
|
802 | user: test | |
795 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
803 | date: Thu Jan 01 00:00:00 1970 +0000 | |
796 | summary: commit on default |
|
804 | summary: commit on default | |
797 |
|
805 | |||
798 | changeset: 0:24427303d56f |
|
806 | changeset: 0:24427303d56f | |
799 | user: test |
|
807 | user: test | |
800 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
808 | date: Thu Jan 01 00:00:00 1970 +0000 | |
801 | summary: commit on default |
|
809 | summary: commit on default | |
802 |
|
810 | |||
803 |
|
811 | |||
804 |
|
812 | |||
805 | log -p --cwd dir (in subdir) |
|
813 | log -p --cwd dir (in subdir) | |
806 |
|
814 | |||
807 | $ mkdir dir |
|
815 | $ mkdir dir | |
808 | $ hg log -p --cwd dir |
|
816 | $ hg log -p --cwd dir | |
809 | changeset: 3:f5d8de11c2e2 |
|
817 | changeset: 3:f5d8de11c2e2 | |
810 | branch: test |
|
818 | branch: test | |
811 | tag: tip |
|
819 | tag: tip | |
812 | parent: 1:d32277701ccb |
|
820 | parent: 1:d32277701ccb | |
813 | user: test |
|
821 | user: test | |
814 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
822 | date: Thu Jan 01 00:00:00 1970 +0000 | |
815 | summary: commit on test |
|
823 | summary: commit on test | |
816 |
|
824 | |||
817 | diff -r d32277701ccb -r f5d8de11c2e2 c |
|
825 | diff -r d32277701ccb -r f5d8de11c2e2 c | |
818 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
826 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
819 | +++ b/c Thu Jan 01 00:00:00 1970 +0000 |
|
827 | +++ b/c Thu Jan 01 00:00:00 1970 +0000 | |
820 | @@ -0,0 +1,1 @@ |
|
828 | @@ -0,0 +1,1 @@ | |
821 | +c |
|
829 | +c | |
822 |
|
830 | |||
823 | changeset: 2:c3a4f03cc9a7 |
|
831 | changeset: 2:c3a4f03cc9a7 | |
824 | parent: 0:24427303d56f |
|
832 | parent: 0:24427303d56f | |
825 | user: test |
|
833 | user: test | |
826 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
834 | date: Thu Jan 01 00:00:00 1970 +0000 | |
827 | summary: commit on default |
|
835 | summary: commit on default | |
828 |
|
836 | |||
829 | diff -r 24427303d56f -r c3a4f03cc9a7 c |
|
837 | diff -r 24427303d56f -r c3a4f03cc9a7 c | |
830 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
838 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
831 | +++ b/c Thu Jan 01 00:00:00 1970 +0000 |
|
839 | +++ b/c Thu Jan 01 00:00:00 1970 +0000 | |
832 | @@ -0,0 +1,1 @@ |
|
840 | @@ -0,0 +1,1 @@ | |
833 | +c |
|
841 | +c | |
834 |
|
842 | |||
835 | changeset: 1:d32277701ccb |
|
843 | changeset: 1:d32277701ccb | |
836 | branch: test |
|
844 | branch: test | |
837 | user: test |
|
845 | user: test | |
838 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
846 | date: Thu Jan 01 00:00:00 1970 +0000 | |
839 | summary: commit on test |
|
847 | summary: commit on test | |
840 |
|
848 | |||
841 | diff -r 24427303d56f -r d32277701ccb b |
|
849 | diff -r 24427303d56f -r d32277701ccb b | |
842 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
850 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
843 | +++ b/b Thu Jan 01 00:00:00 1970 +0000 |
|
851 | +++ b/b Thu Jan 01 00:00:00 1970 +0000 | |
844 | @@ -0,0 +1,1 @@ |
|
852 | @@ -0,0 +1,1 @@ | |
845 | +b |
|
853 | +b | |
846 |
|
854 | |||
847 | changeset: 0:24427303d56f |
|
855 | changeset: 0:24427303d56f | |
848 | user: test |
|
856 | user: test | |
849 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
857 | date: Thu Jan 01 00:00:00 1970 +0000 | |
850 | summary: commit on default |
|
858 | summary: commit on default | |
851 |
|
859 | |||
852 | diff -r 000000000000 -r 24427303d56f a |
|
860 | diff -r 000000000000 -r 24427303d56f a | |
853 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
861 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
854 | +++ b/a Thu Jan 01 00:00:00 1970 +0000 |
|
862 | +++ b/a Thu Jan 01 00:00:00 1970 +0000 | |
855 | @@ -0,0 +1,1 @@ |
|
863 | @@ -0,0 +1,1 @@ | |
856 | +a |
|
864 | +a | |
857 |
|
865 | |||
858 |
|
866 | |||
859 |
|
867 | |||
860 | log -p -R repo |
|
868 | log -p -R repo | |
861 |
|
869 | |||
862 | $ cd dir |
|
870 | $ cd dir | |
863 | $ hg log -p -R .. ../a |
|
871 | $ hg log -p -R .. ../a | |
864 | changeset: 0:24427303d56f |
|
872 | changeset: 0:24427303d56f | |
865 | user: test |
|
873 | user: test | |
866 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
874 | date: Thu Jan 01 00:00:00 1970 +0000 | |
867 | summary: commit on default |
|
875 | summary: commit on default | |
868 |
|
876 | |||
869 | diff -r 000000000000 -r 24427303d56f a |
|
877 | diff -r 000000000000 -r 24427303d56f a | |
870 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
878 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
871 | +++ b/a Thu Jan 01 00:00:00 1970 +0000 |
|
879 | +++ b/a Thu Jan 01 00:00:00 1970 +0000 | |
872 | @@ -0,0 +1,1 @@ |
|
880 | @@ -0,0 +1,1 @@ | |
873 | +a |
|
881 | +a | |
874 |
|
882 | |||
875 |
|
883 | |||
876 |
|
884 | |||
877 | $ cd .. |
|
885 | $ cd .. | |
878 | $ hg init follow2 |
|
886 | $ hg init follow2 | |
879 | $ cd follow2 |
|
887 | $ cd follow2 | |
880 |
|
888 | |||
881 |
|
889 | |||
882 | # Build the following history: |
|
890 | # Build the following history: | |
883 | # tip - o - x - o - x - x |
|
891 | # tip - o - x - o - x - x | |
884 | # \ / |
|
892 | # \ / | |
885 | # o - o - o - x |
|
893 | # o - o - o - x | |
886 | # \ / |
|
894 | # \ / | |
887 | # o |
|
895 | # o | |
888 | # |
|
896 | # | |
889 | # Where "o" is a revision containing "foo" and |
|
897 | # Where "o" is a revision containing "foo" and | |
890 | # "x" is a revision without "foo" |
|
898 | # "x" is a revision without "foo" | |
891 |
|
899 | |||
892 | $ touch init |
|
900 | $ touch init | |
893 | $ hg ci -A -m "init, unrelated" |
|
901 | $ hg ci -A -m "init, unrelated" | |
894 | adding init |
|
902 | adding init | |
895 | $ echo 'foo' > init |
|
903 | $ echo 'foo' > init | |
896 | $ hg ci -m "change, unrelated" |
|
904 | $ hg ci -m "change, unrelated" | |
897 | $ echo 'foo' > foo |
|
905 | $ echo 'foo' > foo | |
898 | $ hg ci -A -m "add unrelated old foo" |
|
906 | $ hg ci -A -m "add unrelated old foo" | |
899 | adding foo |
|
907 | adding foo | |
900 | $ hg rm foo |
|
908 | $ hg rm foo | |
901 | $ hg ci -m "delete foo, unrelated" |
|
909 | $ hg ci -m "delete foo, unrelated" | |
902 | $ echo 'related' > foo |
|
910 | $ echo 'related' > foo | |
903 | $ hg ci -A -m "add foo, related" |
|
911 | $ hg ci -A -m "add foo, related" | |
904 | adding foo |
|
912 | adding foo | |
905 |
|
913 | |||
906 | $ hg up 0 |
|
914 | $ hg up 0 | |
907 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
915 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
908 | $ touch branch |
|
916 | $ touch branch | |
909 | $ hg ci -A -m "first branch, unrelated" |
|
917 | $ hg ci -A -m "first branch, unrelated" | |
910 | adding branch |
|
918 | adding branch | |
911 | created new head |
|
919 | created new head | |
912 | $ touch foo |
|
920 | $ touch foo | |
913 | $ hg ci -A -m "create foo, related" |
|
921 | $ hg ci -A -m "create foo, related" | |
914 | adding foo |
|
922 | adding foo | |
915 | $ echo 'change' > foo |
|
923 | $ echo 'change' > foo | |
916 | $ hg ci -m "change foo, related" |
|
924 | $ hg ci -m "change foo, related" | |
917 |
|
925 | |||
918 | $ hg up 6 |
|
926 | $ hg up 6 | |
919 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
927 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
920 | $ echo 'change foo in branch' > foo |
|
928 | $ echo 'change foo in branch' > foo | |
921 | $ hg ci -m "change foo in branch, related" |
|
929 | $ hg ci -m "change foo in branch, related" | |
922 | created new head |
|
930 | created new head | |
923 | $ hg merge 7 |
|
931 | $ hg merge 7 | |
924 | merging foo |
|
932 | merging foo | |
925 | warning: conflicts during merge. |
|
933 | warning: conflicts during merge. | |
926 | merging foo incomplete! (edit conflicts, then use 'hg resolve --mark') |
|
934 | merging foo incomplete! (edit conflicts, then use 'hg resolve --mark') | |
927 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
935 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
928 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon |
|
936 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon | |
929 | [1] |
|
937 | [1] | |
930 | $ echo 'merge 1' > foo |
|
938 | $ echo 'merge 1' > foo | |
931 | $ hg resolve -m foo |
|
939 | $ hg resolve -m foo | |
932 | $ hg ci -m "First merge, related" |
|
940 | $ hg ci -m "First merge, related" | |
933 |
|
941 | |||
934 | $ hg merge 4 |
|
942 | $ hg merge 4 | |
935 | merging foo |
|
943 | merging foo | |
936 | warning: conflicts during merge. |
|
944 | warning: conflicts during merge. | |
937 | merging foo incomplete! (edit conflicts, then use 'hg resolve --mark') |
|
945 | merging foo incomplete! (edit conflicts, then use 'hg resolve --mark') | |
938 | 1 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
946 | 1 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
939 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon |
|
947 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon | |
940 | [1] |
|
948 | [1] | |
941 | $ echo 'merge 2' > foo |
|
949 | $ echo 'merge 2' > foo | |
942 | $ hg resolve -m foo |
|
950 | $ hg resolve -m foo | |
943 | $ hg ci -m "Last merge, related" |
|
951 | $ hg ci -m "Last merge, related" | |
944 |
|
952 | |||
945 | $ hg --config "extensions.graphlog=" glog |
|
953 | $ hg --config "extensions.graphlog=" glog | |
946 | @ changeset: 10:4dae8563d2c5 |
|
954 | @ changeset: 10:4dae8563d2c5 | |
947 | |\ tag: tip |
|
955 | |\ tag: tip | |
948 | | | parent: 9:7b35701b003e |
|
956 | | | parent: 9:7b35701b003e | |
949 | | | parent: 4:88176d361b69 |
|
957 | | | parent: 4:88176d361b69 | |
950 | | | user: test |
|
958 | | | user: test | |
951 | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
959 | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
952 | | | summary: Last merge, related |
|
960 | | | summary: Last merge, related | |
953 | | | |
|
961 | | | | |
954 | | o changeset: 9:7b35701b003e |
|
962 | | o changeset: 9:7b35701b003e | |
955 | | |\ parent: 8:e5416ad8a855 |
|
963 | | |\ parent: 8:e5416ad8a855 | |
956 | | | | parent: 7:87fe3144dcfa |
|
964 | | | | parent: 7:87fe3144dcfa | |
957 | | | | user: test |
|
965 | | | | user: test | |
958 | | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
966 | | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
959 | | | | summary: First merge, related |
|
967 | | | | summary: First merge, related | |
960 | | | | |
|
968 | | | | | |
961 | | | o changeset: 8:e5416ad8a855 |
|
969 | | | o changeset: 8:e5416ad8a855 | |
962 | | | | parent: 6:dc6c325fe5ee |
|
970 | | | | parent: 6:dc6c325fe5ee | |
963 | | | | user: test |
|
971 | | | | user: test | |
964 | | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
972 | | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
965 | | | | summary: change foo in branch, related |
|
973 | | | | summary: change foo in branch, related | |
966 | | | | |
|
974 | | | | | |
967 | | o | changeset: 7:87fe3144dcfa |
|
975 | | o | changeset: 7:87fe3144dcfa | |
968 | | |/ user: test |
|
976 | | |/ user: test | |
969 | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
977 | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
970 | | | summary: change foo, related |
|
978 | | | summary: change foo, related | |
971 | | | |
|
979 | | | | |
972 | | o changeset: 6:dc6c325fe5ee |
|
980 | | o changeset: 6:dc6c325fe5ee | |
973 | | | user: test |
|
981 | | | user: test | |
974 | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
982 | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
975 | | | summary: create foo, related |
|
983 | | | summary: create foo, related | |
976 | | | |
|
984 | | | | |
977 | | o changeset: 5:73db34516eb9 |
|
985 | | o changeset: 5:73db34516eb9 | |
978 | | | parent: 0:e87515fd044a |
|
986 | | | parent: 0:e87515fd044a | |
979 | | | user: test |
|
987 | | | user: test | |
980 | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
988 | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
981 | | | summary: first branch, unrelated |
|
989 | | | summary: first branch, unrelated | |
982 | | | |
|
990 | | | | |
983 | o | changeset: 4:88176d361b69 |
|
991 | o | changeset: 4:88176d361b69 | |
984 | | | user: test |
|
992 | | | user: test | |
985 | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
993 | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
986 | | | summary: add foo, related |
|
994 | | | summary: add foo, related | |
987 | | | |
|
995 | | | | |
988 | o | changeset: 3:dd78ae4afb56 |
|
996 | o | changeset: 3:dd78ae4afb56 | |
989 | | | user: test |
|
997 | | | user: test | |
990 | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
998 | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
991 | | | summary: delete foo, unrelated |
|
999 | | | summary: delete foo, unrelated | |
992 | | | |
|
1000 | | | | |
993 | o | changeset: 2:c4c64aedf0f7 |
|
1001 | o | changeset: 2:c4c64aedf0f7 | |
994 | | | user: test |
|
1002 | | | user: test | |
995 | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1003 | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
996 | | | summary: add unrelated old foo |
|
1004 | | | summary: add unrelated old foo | |
997 | | | |
|
1005 | | | | |
998 | o | changeset: 1:e5faa7440653 |
|
1006 | o | changeset: 1:e5faa7440653 | |
999 | |/ user: test |
|
1007 | |/ user: test | |
1000 | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1008 | | date: Thu Jan 01 00:00:00 1970 +0000 | |
1001 | | summary: change, unrelated |
|
1009 | | summary: change, unrelated | |
1002 | | |
|
1010 | | | |
1003 | o changeset: 0:e87515fd044a |
|
1011 | o changeset: 0:e87515fd044a | |
1004 | user: test |
|
1012 | user: test | |
1005 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1013 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1006 | summary: init, unrelated |
|
1014 | summary: init, unrelated | |
1007 |
|
1015 | |||
1008 |
|
1016 | |||
1009 | $ hg --traceback log -f foo |
|
1017 | $ hg --traceback log -f foo | |
1010 | changeset: 10:4dae8563d2c5 |
|
1018 | changeset: 10:4dae8563d2c5 | |
1011 | tag: tip |
|
1019 | tag: tip | |
1012 | parent: 9:7b35701b003e |
|
1020 | parent: 9:7b35701b003e | |
1013 | parent: 4:88176d361b69 |
|
1021 | parent: 4:88176d361b69 | |
1014 | user: test |
|
1022 | user: test | |
1015 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1023 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1016 | summary: Last merge, related |
|
1024 | summary: Last merge, related | |
1017 |
|
1025 | |||
1018 | changeset: 9:7b35701b003e |
|
1026 | changeset: 9:7b35701b003e | |
1019 | parent: 8:e5416ad8a855 |
|
1027 | parent: 8:e5416ad8a855 | |
1020 | parent: 7:87fe3144dcfa |
|
1028 | parent: 7:87fe3144dcfa | |
1021 | user: test |
|
1029 | user: test | |
1022 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1030 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1023 | summary: First merge, related |
|
1031 | summary: First merge, related | |
1024 |
|
1032 | |||
1025 | changeset: 8:e5416ad8a855 |
|
1033 | changeset: 8:e5416ad8a855 | |
1026 | parent: 6:dc6c325fe5ee |
|
1034 | parent: 6:dc6c325fe5ee | |
1027 | user: test |
|
1035 | user: test | |
1028 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1036 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1029 | summary: change foo in branch, related |
|
1037 | summary: change foo in branch, related | |
1030 |
|
1038 | |||
1031 | changeset: 7:87fe3144dcfa |
|
1039 | changeset: 7:87fe3144dcfa | |
1032 | user: test |
|
1040 | user: test | |
1033 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1041 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1034 | summary: change foo, related |
|
1042 | summary: change foo, related | |
1035 |
|
1043 | |||
1036 | changeset: 6:dc6c325fe5ee |
|
1044 | changeset: 6:dc6c325fe5ee | |
1037 | user: test |
|
1045 | user: test | |
1038 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1046 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1039 | summary: create foo, related |
|
1047 | summary: create foo, related | |
1040 |
|
1048 | |||
1041 | changeset: 4:88176d361b69 |
|
1049 | changeset: 4:88176d361b69 | |
1042 | user: test |
|
1050 | user: test | |
1043 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1051 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1044 | summary: add foo, related |
|
1052 | summary: add foo, related | |
1045 |
|
1053 | |||
1046 |
|
1054 | |||
1047 | Also check when maxrev < lastrevfilelog |
|
1055 | Also check when maxrev < lastrevfilelog | |
1048 |
|
1056 | |||
1049 | $ hg --traceback log -f -r4 foo |
|
1057 | $ hg --traceback log -f -r4 foo | |
1050 | changeset: 4:88176d361b69 |
|
1058 | changeset: 4:88176d361b69 | |
1051 | user: test |
|
1059 | user: test | |
1052 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1060 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1053 | summary: add foo, related |
|
1061 | summary: add foo, related | |
1054 |
|
1062 | |||
1055 |
|
1063 | |||
1056 | Issue2383: hg log showing _less_ differences than hg diff |
|
1064 | Issue2383: hg log showing _less_ differences than hg diff | |
1057 |
|
1065 | |||
1058 | $ hg init issue2383 |
|
1066 | $ hg init issue2383 | |
1059 | $ cd issue2383 |
|
1067 | $ cd issue2383 | |
1060 |
|
1068 | |||
1061 | Create a test repo: |
|
1069 | Create a test repo: | |
1062 |
|
1070 | |||
1063 | $ echo a > a |
|
1071 | $ echo a > a | |
1064 | $ hg ci -Am0 |
|
1072 | $ hg ci -Am0 | |
1065 | adding a |
|
1073 | adding a | |
1066 | $ echo b > b |
|
1074 | $ echo b > b | |
1067 | $ hg ci -Am1 |
|
1075 | $ hg ci -Am1 | |
1068 | adding b |
|
1076 | adding b | |
1069 | $ hg co 0 |
|
1077 | $ hg co 0 | |
1070 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
1078 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
1071 | $ echo b > a |
|
1079 | $ echo b > a | |
1072 | $ hg ci -m2 |
|
1080 | $ hg ci -m2 | |
1073 | created new head |
|
1081 | created new head | |
1074 |
|
1082 | |||
1075 | Merge: |
|
1083 | Merge: | |
1076 |
|
1084 | |||
1077 | $ hg merge |
|
1085 | $ hg merge | |
1078 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
1086 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
1079 | (branch merge, don't forget to commit) |
|
1087 | (branch merge, don't forget to commit) | |
1080 |
|
1088 | |||
1081 | Make sure there's a file listed in the merge to trigger the bug: |
|
1089 | Make sure there's a file listed in the merge to trigger the bug: | |
1082 |
|
1090 | |||
1083 | $ echo c > a |
|
1091 | $ echo c > a | |
1084 | $ hg ci -m3 |
|
1092 | $ hg ci -m3 | |
1085 |
|
1093 | |||
1086 | Two files shown here in diff: |
|
1094 | Two files shown here in diff: | |
1087 |
|
1095 | |||
1088 | $ hg diff --rev 2:3 |
|
1096 | $ hg diff --rev 2:3 | |
1089 | diff -r b09be438c43a -r 8e07aafe1edc a |
|
1097 | diff -r b09be438c43a -r 8e07aafe1edc a | |
1090 | --- a/a Thu Jan 01 00:00:00 1970 +0000 |
|
1098 | --- a/a Thu Jan 01 00:00:00 1970 +0000 | |
1091 | +++ b/a Thu Jan 01 00:00:00 1970 +0000 |
|
1099 | +++ b/a Thu Jan 01 00:00:00 1970 +0000 | |
1092 | @@ -1,1 +1,1 @@ |
|
1100 | @@ -1,1 +1,1 @@ | |
1093 | -b |
|
1101 | -b | |
1094 | +c |
|
1102 | +c | |
1095 | diff -r b09be438c43a -r 8e07aafe1edc b |
|
1103 | diff -r b09be438c43a -r 8e07aafe1edc b | |
1096 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
1104 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
1097 | +++ b/b Thu Jan 01 00:00:00 1970 +0000 |
|
1105 | +++ b/b Thu Jan 01 00:00:00 1970 +0000 | |
1098 | @@ -0,0 +1,1 @@ |
|
1106 | @@ -0,0 +1,1 @@ | |
1099 | +b |
|
1107 | +b | |
1100 |
|
1108 | |||
1101 | Diff here should be the same: |
|
1109 | Diff here should be the same: | |
1102 |
|
1110 | |||
1103 | $ hg log -vpr 3 |
|
1111 | $ hg log -vpr 3 | |
1104 | changeset: 3:8e07aafe1edc |
|
1112 | changeset: 3:8e07aafe1edc | |
1105 | tag: tip |
|
1113 | tag: tip | |
1106 | parent: 2:b09be438c43a |
|
1114 | parent: 2:b09be438c43a | |
1107 | parent: 1:925d80f479bb |
|
1115 | parent: 1:925d80f479bb | |
1108 | user: test |
|
1116 | user: test | |
1109 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1117 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1110 | files: a |
|
1118 | files: a | |
1111 | description: |
|
1119 | description: | |
1112 | 3 |
|
1120 | 3 | |
1113 |
|
1121 | |||
1114 |
|
1122 | |||
1115 | diff -r b09be438c43a -r 8e07aafe1edc a |
|
1123 | diff -r b09be438c43a -r 8e07aafe1edc a | |
1116 | --- a/a Thu Jan 01 00:00:00 1970 +0000 |
|
1124 | --- a/a Thu Jan 01 00:00:00 1970 +0000 | |
1117 | +++ b/a Thu Jan 01 00:00:00 1970 +0000 |
|
1125 | +++ b/a Thu Jan 01 00:00:00 1970 +0000 | |
1118 | @@ -1,1 +1,1 @@ |
|
1126 | @@ -1,1 +1,1 @@ | |
1119 | -b |
|
1127 | -b | |
1120 | +c |
|
1128 | +c | |
1121 | diff -r b09be438c43a -r 8e07aafe1edc b |
|
1129 | diff -r b09be438c43a -r 8e07aafe1edc b | |
1122 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
1130 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
1123 | +++ b/b Thu Jan 01 00:00:00 1970 +0000 |
|
1131 | +++ b/b Thu Jan 01 00:00:00 1970 +0000 | |
1124 | @@ -0,0 +1,1 @@ |
|
1132 | @@ -0,0 +1,1 @@ | |
1125 | +b |
|
1133 | +b | |
1126 |
|
1134 | |||
1127 | $ cd .. |
|
1135 | $ cd .. | |
1128 |
|
1136 | |||
1129 | 'hg log -r rev fn' when last(filelog(fn)) != rev |
|
1137 | 'hg log -r rev fn' when last(filelog(fn)) != rev | |
1130 |
|
1138 | |||
1131 | $ hg init simplelog; cd simplelog |
|
1139 | $ hg init simplelog; cd simplelog | |
1132 | $ echo f > a |
|
1140 | $ echo f > a | |
1133 | $ hg ci -Am'a' -d '0 0' |
|
1141 | $ hg ci -Am'a' -d '0 0' | |
1134 | adding a |
|
1142 | adding a | |
1135 | $ echo f >> a |
|
1143 | $ echo f >> a | |
1136 | $ hg ci -Am'a bis' -d '1 0' |
|
1144 | $ hg ci -Am'a bis' -d '1 0' | |
1137 |
|
1145 | |||
1138 | $ hg log -r0 a |
|
1146 | $ hg log -r0 a | |
1139 | changeset: 0:9f758d63dcde |
|
1147 | changeset: 0:9f758d63dcde | |
1140 | user: test |
|
1148 | user: test | |
1141 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1149 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1142 | summary: a |
|
1150 | summary: a | |
1143 |
|
1151 | |||
1144 | $ cat > $HGTMP/testhidden.py << EOF |
|
1152 | $ cat > $HGTMP/testhidden.py << EOF | |
1145 | > def reposetup(ui, repo): |
|
1153 | > def reposetup(ui, repo): | |
1146 | > for line in repo.opener('hidden'): |
|
1154 | > for line in repo.opener('hidden'): | |
1147 | > ctx = repo[line.strip()] |
|
1155 | > ctx = repo[line.strip()] | |
1148 | > repo.changelog.hiddenrevs.add(ctx.rev()) |
|
1156 | > repo.changelog.hiddenrevs.add(ctx.rev()) | |
1149 | > EOF |
|
1157 | > EOF | |
1150 | $ echo '[extensions]' >> $HGRCPATH |
|
1158 | $ echo '[extensions]' >> $HGRCPATH | |
1151 | $ echo "hidden=$HGTMP/testhidden.py" >> $HGRCPATH |
|
1159 | $ echo "hidden=$HGTMP/testhidden.py" >> $HGRCPATH | |
1152 | $ touch .hg/hidden |
|
1160 | $ touch .hg/hidden | |
1153 | $ hg log --template='{rev}:{node}\n' |
|
1161 | $ hg log --template='{rev}:{node}\n' | |
1154 | 1:a765632148dc55d38c35c4f247c618701886cb2f |
|
1162 | 1:a765632148dc55d38c35c4f247c618701886cb2f | |
1155 | 0:9f758d63dcde62d547ebfb08e1e7ee96535f2b05 |
|
1163 | 0:9f758d63dcde62d547ebfb08e1e7ee96535f2b05 | |
1156 | $ echo a765632148dc55d38c35c4f247c618701886cb2f > .hg/hidden |
|
1164 | $ echo a765632148dc55d38c35c4f247c618701886cb2f > .hg/hidden | |
1157 | $ hg log --template='{rev}:{node}\n' |
|
1165 | $ hg log --template='{rev}:{node}\n' | |
1158 | 0:9f758d63dcde62d547ebfb08e1e7ee96535f2b05 |
|
1166 | 0:9f758d63dcde62d547ebfb08e1e7ee96535f2b05 | |
1159 | $ hg log --template='{rev}:{node}\n' --hidden |
|
1167 | $ hg log --template='{rev}:{node}\n' --hidden | |
1160 | 1:a765632148dc55d38c35c4f247c618701886cb2f |
|
1168 | 1:a765632148dc55d38c35c4f247c618701886cb2f | |
1161 | 0:9f758d63dcde62d547ebfb08e1e7ee96535f2b05 |
|
1169 | 0:9f758d63dcde62d547ebfb08e1e7ee96535f2b05 | |
1162 |
|
1170 | |||
1163 | clear extensions configuration |
|
1171 | clear extensions configuration | |
1164 | $ echo '[extensions]' >> $HGRCPATH |
|
1172 | $ echo '[extensions]' >> $HGRCPATH | |
1165 | $ echo "hidden=!" >> $HGRCPATH |
|
1173 | $ echo "hidden=!" >> $HGRCPATH | |
1166 | $ cd .. |
|
1174 | $ cd .. | |
1167 |
|
1175 | |||
1168 | test -u/-k for problematic encoding |
|
1176 | test -u/-k for problematic encoding | |
1169 | # unicode: cp932: |
|
1177 | # unicode: cp932: | |
1170 | # u30A2 0x83 0x41(= 'A') |
|
1178 | # u30A2 0x83 0x41(= 'A') | |
1171 | # u30C2 0x83 0x61(= 'a') |
|
1179 | # u30C2 0x83 0x61(= 'a') | |
1172 |
|
1180 | |||
1173 | $ hg init problematicencoding |
|
1181 | $ hg init problematicencoding | |
1174 | $ cd problematicencoding |
|
1182 | $ cd problematicencoding | |
1175 |
|
1183 | |||
1176 | $ python > setup.sh <<EOF |
|
1184 | $ python > setup.sh <<EOF | |
1177 | > print u''' |
|
1185 | > print u''' | |
1178 | > echo a > text |
|
1186 | > echo a > text | |
1179 | > hg add text |
|
1187 | > hg add text | |
1180 | > hg --encoding utf-8 commit -u '\u30A2' -m none |
|
1188 | > hg --encoding utf-8 commit -u '\u30A2' -m none | |
1181 | > echo b > text |
|
1189 | > echo b > text | |
1182 | > hg --encoding utf-8 commit -u '\u30C2' -m none |
|
1190 | > hg --encoding utf-8 commit -u '\u30C2' -m none | |
1183 | > echo c > text |
|
1191 | > echo c > text | |
1184 | > hg --encoding utf-8 commit -u none -m '\u30A2' |
|
1192 | > hg --encoding utf-8 commit -u none -m '\u30A2' | |
1185 | > echo d > text |
|
1193 | > echo d > text | |
1186 | > hg --encoding utf-8 commit -u none -m '\u30C2' |
|
1194 | > hg --encoding utf-8 commit -u none -m '\u30C2' | |
1187 | > '''.encode('utf-8') |
|
1195 | > '''.encode('utf-8') | |
1188 | > EOF |
|
1196 | > EOF | |
1189 | $ sh < setup.sh |
|
1197 | $ sh < setup.sh | |
1190 |
|
1198 | |||
1191 | test in problematic encoding |
|
1199 | test in problematic encoding | |
1192 | $ python > test.sh <<EOF |
|
1200 | $ python > test.sh <<EOF | |
1193 | > print u''' |
|
1201 | > print u''' | |
1194 | > hg --encoding cp932 log --template '{rev}\\n' -u '\u30A2' |
|
1202 | > hg --encoding cp932 log --template '{rev}\\n' -u '\u30A2' | |
1195 | > echo ==== |
|
1203 | > echo ==== | |
1196 | > hg --encoding cp932 log --template '{rev}\\n' -u '\u30C2' |
|
1204 | > hg --encoding cp932 log --template '{rev}\\n' -u '\u30C2' | |
1197 | > echo ==== |
|
1205 | > echo ==== | |
1198 | > hg --encoding cp932 log --template '{rev}\\n' -k '\u30A2' |
|
1206 | > hg --encoding cp932 log --template '{rev}\\n' -k '\u30A2' | |
1199 | > echo ==== |
|
1207 | > echo ==== | |
1200 | > hg --encoding cp932 log --template '{rev}\\n' -k '\u30C2' |
|
1208 | > hg --encoding cp932 log --template '{rev}\\n' -k '\u30C2' | |
1201 | > '''.encode('cp932') |
|
1209 | > '''.encode('cp932') | |
1202 | > EOF |
|
1210 | > EOF | |
1203 | $ sh < test.sh |
|
1211 | $ sh < test.sh | |
1204 | 0 |
|
1212 | 0 | |
1205 | ==== |
|
1213 | ==== | |
1206 | 1 |
|
1214 | 1 | |
1207 | ==== |
|
1215 | ==== | |
1208 | 2 |
|
1216 | 2 | |
1209 | 0 |
|
1217 | 0 | |
1210 | ==== |
|
1218 | ==== | |
1211 | 3 |
|
1219 | 3 | |
1212 | 1 |
|
1220 | 1 | |
1213 |
|
1221 | |||
1214 | $ cd .. |
|
1222 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now