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