Show More
@@ -1,2391 +1,2393 b'' | |||||
1 | Log on empty repository: checking consistency |
|
1 | Log on empty repository: checking consistency | |
2 |
|
2 | |||
3 | $ hg init empty |
|
3 | $ hg init empty | |
4 | $ cd empty |
|
4 | $ cd empty | |
5 | $ hg log |
|
5 | $ hg log | |
6 | $ hg log -r 1 |
|
6 | $ hg log -r 1 | |
7 | abort: unknown revision '1'! |
|
7 | abort: unknown revision '1'! | |
8 | [255] |
|
8 | [255] | |
9 | $ hg log -r -1:0 |
|
9 | $ hg log -r -1:0 | |
10 | abort: unknown revision '-1'! |
|
10 | abort: unknown revision '-1'! | |
11 | [255] |
|
11 | [255] | |
12 | $ hg log -r 'branch(name)' |
|
12 | $ hg log -r 'branch(name)' | |
13 | abort: unknown revision 'name'! |
|
13 | abort: unknown revision 'name'! | |
14 | [255] |
|
14 | [255] | |
15 | $ hg log -r null -q |
|
15 | $ hg log -r null -q | |
16 | -1:000000000000 |
|
16 | -1:000000000000 | |
17 |
|
17 | |||
18 | The g is crafted to have 2 filelog topological heads in a linear |
|
18 | The g is crafted to have 2 filelog topological heads in a linear | |
19 | changeset graph |
|
19 | changeset graph | |
20 |
|
20 | |||
21 | $ hg init a |
|
21 | $ hg init a | |
22 | $ cd a |
|
22 | $ cd a | |
23 | $ echo a > a |
|
23 | $ echo a > a | |
24 | $ echo f > f |
|
24 | $ echo f > f | |
25 | $ hg ci -Ama -d '1 0' |
|
25 | $ hg ci -Ama -d '1 0' | |
26 | adding a |
|
26 | adding a | |
27 | adding f |
|
27 | adding f | |
28 |
|
28 | |||
29 | $ hg cp a b |
|
29 | $ hg cp a b | |
30 | $ hg cp f g |
|
30 | $ hg cp f g | |
31 | $ hg ci -mb -d '2 0' |
|
31 | $ hg ci -mb -d '2 0' | |
32 |
|
32 | |||
33 | $ mkdir dir |
|
33 | $ mkdir dir | |
34 | $ hg mv b dir |
|
34 | $ hg mv b dir | |
35 | $ echo g >> g |
|
35 | $ echo g >> g | |
36 | $ echo f >> f |
|
36 | $ echo f >> f | |
37 | $ hg ci -mc -d '3 0' |
|
37 | $ hg ci -mc -d '3 0' | |
38 |
|
38 | |||
39 | $ hg mv a b |
|
39 | $ hg mv a b | |
40 | $ hg cp -f f g |
|
40 | $ hg cp -f f g | |
41 | $ echo a > d |
|
41 | $ echo a > d | |
42 | $ hg add d |
|
42 | $ hg add d | |
43 | $ hg ci -md -d '4 0' |
|
43 | $ hg ci -md -d '4 0' | |
44 |
|
44 | |||
45 | $ hg mv dir/b e |
|
45 | $ hg mv dir/b e | |
46 | $ hg ci -me -d '5 0' |
|
46 | $ hg ci -me -d '5 0' | |
47 |
|
47 | |||
48 | Make sure largefiles doesn't interfere with logging a regular file |
|
48 | Make sure largefiles doesn't interfere with logging a regular file | |
49 | $ hg --debug log a -T '{rev}: {desc}\n' --config extensions.largefiles= |
|
49 | $ hg --debug log a -T '{rev}: {desc}\n' --config extensions.largefiles= | |
50 | The fsmonitor extension is incompatible with the largefiles extension and has been disabled. (fsmonitor !) |
|
50 | The fsmonitor extension is incompatible with the largefiles extension and has been disabled. (fsmonitor !) | |
51 | updated patterns: .hglf/a, a |
|
51 | updated patterns: .hglf/a, a | |
52 | 0: a |
|
52 | 0: a | |
53 | $ hg log a |
|
53 | $ hg log a | |
54 | changeset: 0:9161b9aeaf16 |
|
54 | changeset: 0:9161b9aeaf16 | |
55 | user: test |
|
55 | user: test | |
56 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
56 | date: Thu Jan 01 00:00:01 1970 +0000 | |
57 | summary: a |
|
57 | summary: a | |
58 |
|
58 | |||
59 | $ hg log glob:a* |
|
59 | $ hg log glob:a* | |
60 | changeset: 3:2ca5ba701980 |
|
60 | changeset: 3:2ca5ba701980 | |
61 | user: test |
|
61 | user: test | |
62 | date: Thu Jan 01 00:00:04 1970 +0000 |
|
62 | date: Thu Jan 01 00:00:04 1970 +0000 | |
63 | summary: d |
|
63 | summary: d | |
64 |
|
64 | |||
65 | changeset: 0:9161b9aeaf16 |
|
65 | changeset: 0:9161b9aeaf16 | |
66 | user: test |
|
66 | user: test | |
67 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
67 | date: Thu Jan 01 00:00:01 1970 +0000 | |
68 | summary: a |
|
68 | summary: a | |
69 |
|
69 | |||
70 | $ hg --debug log glob:a* -T '{rev}: {desc}\n' --config extensions.largefiles= |
|
70 | $ hg --debug log glob:a* -T '{rev}: {desc}\n' --config extensions.largefiles= | |
71 | The fsmonitor extension is incompatible with the largefiles extension and has been disabled. (fsmonitor !) |
|
71 | The fsmonitor extension is incompatible with the largefiles extension and has been disabled. (fsmonitor !) | |
72 | updated patterns: glob:.hglf/a*, glob:a* |
|
72 | updated patterns: glob:.hglf/a*, glob:a* | |
73 | 3: d |
|
73 | 3: d | |
74 | 0: a |
|
74 | 0: a | |
75 |
|
75 | |||
76 | log on directory |
|
76 | log on directory | |
77 |
|
77 | |||
78 | $ hg log dir |
|
78 | $ hg log dir | |
79 | changeset: 4:7e4639b4691b |
|
79 | changeset: 4:7e4639b4691b | |
80 | tag: tip |
|
80 | tag: tip | |
81 | user: test |
|
81 | user: test | |
82 | date: Thu Jan 01 00:00:05 1970 +0000 |
|
82 | date: Thu Jan 01 00:00:05 1970 +0000 | |
83 | summary: e |
|
83 | summary: e | |
84 |
|
84 | |||
85 | changeset: 2:f8954cd4dc1f |
|
85 | changeset: 2:f8954cd4dc1f | |
86 | user: test |
|
86 | user: test | |
87 | date: Thu Jan 01 00:00:03 1970 +0000 |
|
87 | date: Thu Jan 01 00:00:03 1970 +0000 | |
88 | summary: c |
|
88 | summary: c | |
89 |
|
89 | |||
90 | $ hg log somethingthatdoesntexist dir |
|
90 | $ hg log somethingthatdoesntexist dir | |
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 | summary: e |
|
95 | summary: e | |
96 |
|
96 | |||
97 | changeset: 2:f8954cd4dc1f |
|
97 | changeset: 2:f8954cd4dc1f | |
98 | user: test |
|
98 | user: test | |
99 | date: Thu Jan 01 00:00:03 1970 +0000 |
|
99 | date: Thu Jan 01 00:00:03 1970 +0000 | |
100 | summary: c |
|
100 | summary: c | |
101 |
|
101 | |||
102 |
|
102 | |||
103 | -f, non-existent directory |
|
103 | -f, non-existent directory | |
104 |
|
104 | |||
105 | $ hg log -f dir |
|
105 | $ hg log -f dir | |
106 | abort: cannot follow file not in parent revision: "dir" |
|
106 | abort: cannot follow file not in parent revision: "dir" | |
107 | [255] |
|
107 | [255] | |
108 |
|
108 | |||
109 | -f, directory |
|
109 | -f, directory | |
110 |
|
110 | |||
111 | $ hg up -q 3 |
|
111 | $ hg up -q 3 | |
112 | $ hg log -f dir |
|
112 | $ hg log -f dir | |
113 | changeset: 2:f8954cd4dc1f |
|
113 | changeset: 2:f8954cd4dc1f | |
114 | user: test |
|
114 | user: test | |
115 | date: Thu Jan 01 00:00:03 1970 +0000 |
|
115 | date: Thu Jan 01 00:00:03 1970 +0000 | |
116 | summary: c |
|
116 | summary: c | |
117 |
|
117 | |||
118 | -f, directory with --patch |
|
118 | -f, directory with --patch | |
119 |
|
119 | |||
120 | $ hg log -f dir -p |
|
120 | $ hg log -f dir -p | |
121 | changeset: 2:f8954cd4dc1f |
|
121 | changeset: 2:f8954cd4dc1f | |
122 | user: test |
|
122 | user: test | |
123 | date: Thu Jan 01 00:00:03 1970 +0000 |
|
123 | date: Thu Jan 01 00:00:03 1970 +0000 | |
124 | summary: c |
|
124 | summary: c | |
125 |
|
125 | |||
126 | diff -r d89b0a12d229 -r f8954cd4dc1f dir/b |
|
126 | diff -r d89b0a12d229 -r f8954cd4dc1f dir/b | |
127 | --- /dev/null* (glob) |
|
127 | --- /dev/null* (glob) | |
128 | +++ b/dir/b* (glob) |
|
128 | +++ b/dir/b* (glob) | |
129 | @@ -0,0 +1,1 @@ |
|
129 | @@ -0,0 +1,1 @@ | |
130 | +a |
|
130 | +a | |
131 |
|
131 | |||
132 |
|
132 | |||
133 | -f, pattern |
|
133 | -f, pattern | |
134 |
|
134 | |||
135 | $ hg log -f -I 'dir**' -p |
|
135 | $ hg log -f -I 'dir**' -p | |
136 | changeset: 2:f8954cd4dc1f |
|
136 | changeset: 2:f8954cd4dc1f | |
137 | user: test |
|
137 | user: test | |
138 | date: Thu Jan 01 00:00:03 1970 +0000 |
|
138 | date: Thu Jan 01 00:00:03 1970 +0000 | |
139 | summary: c |
|
139 | summary: c | |
140 |
|
140 | |||
141 | diff -r d89b0a12d229 -r f8954cd4dc1f dir/b |
|
141 | diff -r d89b0a12d229 -r f8954cd4dc1f dir/b | |
142 | --- /dev/null* (glob) |
|
142 | --- /dev/null* (glob) | |
143 | +++ b/dir/b* (glob) |
|
143 | +++ b/dir/b* (glob) | |
144 | @@ -0,0 +1,1 @@ |
|
144 | @@ -0,0 +1,1 @@ | |
145 | +a |
|
145 | +a | |
146 |
|
146 | |||
147 | $ hg up -q 4 |
|
147 | $ hg up -q 4 | |
148 |
|
148 | |||
149 | -f, a wrong style |
|
149 | -f, a wrong style | |
150 |
|
150 | |||
151 | $ hg log -f -l1 --style something |
|
151 | $ hg log -f -l1 --style something | |
152 | abort: style 'something' not found |
|
152 | abort: style 'something' not found | |
153 | (available styles: bisect, changelog, compact, default, phases, show, status, xml) |
|
153 | (available styles: bisect, changelog, compact, default, phases, show, status, xml) | |
154 | [255] |
|
154 | [255] | |
155 |
|
155 | |||
156 | -f, phases style |
|
156 | -f, phases style | |
157 |
|
157 | |||
158 |
|
158 | |||
159 | $ hg log -f -l1 --style phases |
|
159 | $ hg log -f -l1 --style phases | |
160 | changeset: 4:7e4639b4691b |
|
160 | changeset: 4:7e4639b4691b | |
161 | tag: tip |
|
161 | tag: tip | |
162 | phase: draft |
|
162 | phase: draft | |
163 | user: test |
|
163 | user: test | |
164 | date: Thu Jan 01 00:00:05 1970 +0000 |
|
164 | date: Thu Jan 01 00:00:05 1970 +0000 | |
165 | summary: e |
|
165 | summary: e | |
166 |
|
166 | |||
167 |
|
167 | |||
168 | $ hg log -f -l1 --style phases -q |
|
168 | $ hg log -f -l1 --style phases -q | |
169 | 4:7e4639b4691b |
|
169 | 4:7e4639b4691b | |
170 |
|
170 | |||
171 | -f, but no args |
|
171 | -f, but no args | |
172 |
|
172 | |||
173 | $ hg log -f |
|
173 | $ hg log -f | |
174 | changeset: 4:7e4639b4691b |
|
174 | changeset: 4:7e4639b4691b | |
175 | tag: tip |
|
175 | tag: tip | |
176 | user: test |
|
176 | user: test | |
177 | date: Thu Jan 01 00:00:05 1970 +0000 |
|
177 | date: Thu Jan 01 00:00:05 1970 +0000 | |
178 | summary: e |
|
178 | summary: e | |
179 |
|
179 | |||
180 | changeset: 3:2ca5ba701980 |
|
180 | changeset: 3:2ca5ba701980 | |
181 | user: test |
|
181 | user: test | |
182 | date: Thu Jan 01 00:00:04 1970 +0000 |
|
182 | date: Thu Jan 01 00:00:04 1970 +0000 | |
183 | summary: d |
|
183 | summary: d | |
184 |
|
184 | |||
185 | changeset: 2:f8954cd4dc1f |
|
185 | changeset: 2:f8954cd4dc1f | |
186 | user: test |
|
186 | user: test | |
187 | date: Thu Jan 01 00:00:03 1970 +0000 |
|
187 | date: Thu Jan 01 00:00:03 1970 +0000 | |
188 | summary: c |
|
188 | summary: c | |
189 |
|
189 | |||
190 | changeset: 1:d89b0a12d229 |
|
190 | changeset: 1:d89b0a12d229 | |
191 | user: test |
|
191 | user: test | |
192 | date: Thu Jan 01 00:00:02 1970 +0000 |
|
192 | date: Thu Jan 01 00:00:02 1970 +0000 | |
193 | summary: b |
|
193 | summary: b | |
194 |
|
194 | |||
195 | changeset: 0:9161b9aeaf16 |
|
195 | changeset: 0:9161b9aeaf16 | |
196 | user: test |
|
196 | user: test | |
197 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
197 | date: Thu Jan 01 00:00:01 1970 +0000 | |
198 | summary: a |
|
198 | summary: a | |
199 |
|
199 | |||
200 |
|
200 | |||
201 | one rename |
|
201 | one rename | |
202 |
|
202 | |||
203 | $ hg up -q 2 |
|
203 | $ hg up -q 2 | |
204 | $ hg log -vf a |
|
204 | $ hg log -vf a | |
205 | changeset: 0:9161b9aeaf16 |
|
205 | changeset: 0:9161b9aeaf16 | |
206 | user: test |
|
206 | user: test | |
207 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
207 | date: Thu Jan 01 00:00:01 1970 +0000 | |
208 | files: a f |
|
208 | files: a f | |
209 | description: |
|
209 | description: | |
210 | a |
|
210 | a | |
211 |
|
211 | |||
212 |
|
212 | |||
213 |
|
213 | |||
214 | many renames |
|
214 | many renames | |
215 |
|
215 | |||
216 | $ hg up -q tip |
|
216 | $ hg up -q tip | |
217 | $ hg log -vf e |
|
217 | $ hg log -vf e | |
218 | changeset: 4:7e4639b4691b |
|
218 | changeset: 4:7e4639b4691b | |
219 | tag: tip |
|
219 | tag: tip | |
220 | user: test |
|
220 | user: test | |
221 | date: Thu Jan 01 00:00:05 1970 +0000 |
|
221 | date: Thu Jan 01 00:00:05 1970 +0000 | |
222 | files: dir/b e |
|
222 | files: dir/b e | |
223 | description: |
|
223 | description: | |
224 | e |
|
224 | e | |
225 |
|
225 | |||
226 |
|
226 | |||
227 | changeset: 2:f8954cd4dc1f |
|
227 | changeset: 2:f8954cd4dc1f | |
228 | user: test |
|
228 | user: test | |
229 | date: Thu Jan 01 00:00:03 1970 +0000 |
|
229 | date: Thu Jan 01 00:00:03 1970 +0000 | |
230 | files: b dir/b f g |
|
230 | files: b dir/b f g | |
231 | description: |
|
231 | description: | |
232 | c |
|
232 | c | |
233 |
|
233 | |||
234 |
|
234 | |||
235 | changeset: 1:d89b0a12d229 |
|
235 | changeset: 1:d89b0a12d229 | |
236 | user: test |
|
236 | user: test | |
237 | date: Thu Jan 01 00:00:02 1970 +0000 |
|
237 | date: Thu Jan 01 00:00:02 1970 +0000 | |
238 | files: b g |
|
238 | files: b g | |
239 | description: |
|
239 | description: | |
240 | b |
|
240 | b | |
241 |
|
241 | |||
242 |
|
242 | |||
243 | changeset: 0:9161b9aeaf16 |
|
243 | changeset: 0:9161b9aeaf16 | |
244 | user: test |
|
244 | user: test | |
245 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
245 | date: Thu Jan 01 00:00:01 1970 +0000 | |
246 | files: a f |
|
246 | files: a f | |
247 | description: |
|
247 | description: | |
248 | a |
|
248 | a | |
249 |
|
249 | |||
250 |
|
250 | |||
251 |
|
251 | |||
252 |
|
252 | |||
253 | log -pf dir/b |
|
253 | log -pf dir/b | |
254 |
|
254 | |||
255 | $ hg up -q 3 |
|
255 | $ hg up -q 3 | |
256 | $ hg log -pf dir/b |
|
256 | $ hg log -pf dir/b | |
257 | changeset: 2:f8954cd4dc1f |
|
257 | changeset: 2:f8954cd4dc1f | |
258 | user: test |
|
258 | user: test | |
259 | date: Thu Jan 01 00:00:03 1970 +0000 |
|
259 | date: Thu Jan 01 00:00:03 1970 +0000 | |
260 | summary: c |
|
260 | summary: c | |
261 |
|
261 | |||
262 | diff -r d89b0a12d229 -r f8954cd4dc1f dir/b |
|
262 | diff -r d89b0a12d229 -r f8954cd4dc1f dir/b | |
263 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
263 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
264 | +++ b/dir/b Thu Jan 01 00:00:03 1970 +0000 |
|
264 | +++ b/dir/b Thu Jan 01 00:00:03 1970 +0000 | |
265 | @@ -0,0 +1,1 @@ |
|
265 | @@ -0,0 +1,1 @@ | |
266 | +a |
|
266 | +a | |
267 |
|
267 | |||
268 | changeset: 1:d89b0a12d229 |
|
268 | changeset: 1:d89b0a12d229 | |
269 | user: test |
|
269 | user: test | |
270 | date: Thu Jan 01 00:00:02 1970 +0000 |
|
270 | date: Thu Jan 01 00:00:02 1970 +0000 | |
271 | summary: b |
|
271 | summary: b | |
272 |
|
272 | |||
273 | diff -r 9161b9aeaf16 -r d89b0a12d229 b |
|
273 | diff -r 9161b9aeaf16 -r d89b0a12d229 b | |
274 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
274 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
275 | +++ b/b Thu Jan 01 00:00:02 1970 +0000 |
|
275 | +++ b/b Thu Jan 01 00:00:02 1970 +0000 | |
276 | @@ -0,0 +1,1 @@ |
|
276 | @@ -0,0 +1,1 @@ | |
277 | +a |
|
277 | +a | |
278 |
|
278 | |||
279 | changeset: 0:9161b9aeaf16 |
|
279 | changeset: 0:9161b9aeaf16 | |
280 | user: test |
|
280 | user: test | |
281 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
281 | date: Thu Jan 01 00:00:01 1970 +0000 | |
282 | summary: a |
|
282 | summary: a | |
283 |
|
283 | |||
284 | diff -r 000000000000 -r 9161b9aeaf16 a |
|
284 | diff -r 000000000000 -r 9161b9aeaf16 a | |
285 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
285 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
286 | +++ b/a Thu Jan 01 00:00:01 1970 +0000 |
|
286 | +++ b/a Thu Jan 01 00:00:01 1970 +0000 | |
287 | @@ -0,0 +1,1 @@ |
|
287 | @@ -0,0 +1,1 @@ | |
288 | +a |
|
288 | +a | |
289 |
|
289 | |||
290 |
|
290 | |||
291 | log -pf b inside dir |
|
291 | log -pf b inside dir | |
292 |
|
292 | |||
293 | $ hg --cwd=dir log -pf b |
|
293 | $ hg --cwd=dir log -pf b | |
294 | changeset: 2:f8954cd4dc1f |
|
294 | changeset: 2:f8954cd4dc1f | |
295 | user: test |
|
295 | user: test | |
296 | date: Thu Jan 01 00:00:03 1970 +0000 |
|
296 | date: Thu Jan 01 00:00:03 1970 +0000 | |
297 | summary: c |
|
297 | summary: c | |
298 |
|
298 | |||
299 | diff -r d89b0a12d229 -r f8954cd4dc1f dir/b |
|
299 | diff -r d89b0a12d229 -r f8954cd4dc1f dir/b | |
300 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
300 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
301 | +++ b/dir/b Thu Jan 01 00:00:03 1970 +0000 |
|
301 | +++ b/dir/b Thu Jan 01 00:00:03 1970 +0000 | |
302 | @@ -0,0 +1,1 @@ |
|
302 | @@ -0,0 +1,1 @@ | |
303 | +a |
|
303 | +a | |
304 |
|
304 | |||
305 | changeset: 1:d89b0a12d229 |
|
305 | changeset: 1:d89b0a12d229 | |
306 | user: test |
|
306 | user: test | |
307 | date: Thu Jan 01 00:00:02 1970 +0000 |
|
307 | date: Thu Jan 01 00:00:02 1970 +0000 | |
308 | summary: b |
|
308 | summary: b | |
309 |
|
309 | |||
310 | diff -r 9161b9aeaf16 -r d89b0a12d229 b |
|
310 | diff -r 9161b9aeaf16 -r d89b0a12d229 b | |
311 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
311 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
312 | +++ b/b Thu Jan 01 00:00:02 1970 +0000 |
|
312 | +++ b/b Thu Jan 01 00:00:02 1970 +0000 | |
313 | @@ -0,0 +1,1 @@ |
|
313 | @@ -0,0 +1,1 @@ | |
314 | +a |
|
314 | +a | |
315 |
|
315 | |||
316 | changeset: 0:9161b9aeaf16 |
|
316 | changeset: 0:9161b9aeaf16 | |
317 | user: test |
|
317 | user: test | |
318 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
318 | date: Thu Jan 01 00:00:01 1970 +0000 | |
319 | summary: a |
|
319 | summary: a | |
320 |
|
320 | |||
321 | diff -r 000000000000 -r 9161b9aeaf16 a |
|
321 | diff -r 000000000000 -r 9161b9aeaf16 a | |
322 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
322 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
323 | +++ b/a Thu Jan 01 00:00:01 1970 +0000 |
|
323 | +++ b/a Thu Jan 01 00:00:01 1970 +0000 | |
324 | @@ -0,0 +1,1 @@ |
|
324 | @@ -0,0 +1,1 @@ | |
325 | +a |
|
325 | +a | |
326 |
|
326 | |||
327 |
|
327 | |||
328 | log -pf, but no args |
|
328 | log -pf, but no args | |
329 |
|
329 | |||
330 | $ hg log -pf |
|
330 | $ hg log -pf | |
331 | changeset: 3:2ca5ba701980 |
|
331 | changeset: 3:2ca5ba701980 | |
332 | user: test |
|
332 | user: test | |
333 | date: Thu Jan 01 00:00:04 1970 +0000 |
|
333 | date: Thu Jan 01 00:00:04 1970 +0000 | |
334 | summary: d |
|
334 | summary: d | |
335 |
|
335 | |||
336 | diff -r f8954cd4dc1f -r 2ca5ba701980 a |
|
336 | diff -r f8954cd4dc1f -r 2ca5ba701980 a | |
337 | --- a/a Thu Jan 01 00:00:03 1970 +0000 |
|
337 | --- a/a Thu Jan 01 00:00:03 1970 +0000 | |
338 | +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
338 | +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
339 | @@ -1,1 +0,0 @@ |
|
339 | @@ -1,1 +0,0 @@ | |
340 | -a |
|
340 | -a | |
341 | diff -r f8954cd4dc1f -r 2ca5ba701980 b |
|
341 | diff -r f8954cd4dc1f -r 2ca5ba701980 b | |
342 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
342 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
343 | +++ b/b Thu Jan 01 00:00:04 1970 +0000 |
|
343 | +++ b/b Thu Jan 01 00:00:04 1970 +0000 | |
344 | @@ -0,0 +1,1 @@ |
|
344 | @@ -0,0 +1,1 @@ | |
345 | +a |
|
345 | +a | |
346 | diff -r f8954cd4dc1f -r 2ca5ba701980 d |
|
346 | diff -r f8954cd4dc1f -r 2ca5ba701980 d | |
347 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
347 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
348 | +++ b/d Thu Jan 01 00:00:04 1970 +0000 |
|
348 | +++ b/d Thu Jan 01 00:00:04 1970 +0000 | |
349 | @@ -0,0 +1,1 @@ |
|
349 | @@ -0,0 +1,1 @@ | |
350 | +a |
|
350 | +a | |
351 | diff -r f8954cd4dc1f -r 2ca5ba701980 g |
|
351 | diff -r f8954cd4dc1f -r 2ca5ba701980 g | |
352 | --- a/g Thu Jan 01 00:00:03 1970 +0000 |
|
352 | --- a/g Thu Jan 01 00:00:03 1970 +0000 | |
353 | +++ b/g Thu Jan 01 00:00:04 1970 +0000 |
|
353 | +++ b/g Thu Jan 01 00:00:04 1970 +0000 | |
354 | @@ -1,2 +1,2 @@ |
|
354 | @@ -1,2 +1,2 @@ | |
355 | f |
|
355 | f | |
356 | -g |
|
356 | -g | |
357 | +f |
|
357 | +f | |
358 |
|
358 | |||
359 | changeset: 2:f8954cd4dc1f |
|
359 | changeset: 2:f8954cd4dc1f | |
360 | user: test |
|
360 | user: test | |
361 | date: Thu Jan 01 00:00:03 1970 +0000 |
|
361 | date: Thu Jan 01 00:00:03 1970 +0000 | |
362 | summary: c |
|
362 | summary: c | |
363 |
|
363 | |||
364 | diff -r d89b0a12d229 -r f8954cd4dc1f b |
|
364 | diff -r d89b0a12d229 -r f8954cd4dc1f b | |
365 | --- a/b Thu Jan 01 00:00:02 1970 +0000 |
|
365 | --- a/b Thu Jan 01 00:00:02 1970 +0000 | |
366 | +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
366 | +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
367 | @@ -1,1 +0,0 @@ |
|
367 | @@ -1,1 +0,0 @@ | |
368 | -a |
|
368 | -a | |
369 | diff -r d89b0a12d229 -r f8954cd4dc1f dir/b |
|
369 | diff -r d89b0a12d229 -r f8954cd4dc1f dir/b | |
370 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
370 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
371 | +++ b/dir/b Thu Jan 01 00:00:03 1970 +0000 |
|
371 | +++ b/dir/b Thu Jan 01 00:00:03 1970 +0000 | |
372 | @@ -0,0 +1,1 @@ |
|
372 | @@ -0,0 +1,1 @@ | |
373 | +a |
|
373 | +a | |
374 | diff -r d89b0a12d229 -r f8954cd4dc1f f |
|
374 | diff -r d89b0a12d229 -r f8954cd4dc1f f | |
375 | --- a/f Thu Jan 01 00:00:02 1970 +0000 |
|
375 | --- a/f Thu Jan 01 00:00:02 1970 +0000 | |
376 | +++ b/f Thu Jan 01 00:00:03 1970 +0000 |
|
376 | +++ b/f Thu Jan 01 00:00:03 1970 +0000 | |
377 | @@ -1,1 +1,2 @@ |
|
377 | @@ -1,1 +1,2 @@ | |
378 | f |
|
378 | f | |
379 | +f |
|
379 | +f | |
380 | diff -r d89b0a12d229 -r f8954cd4dc1f g |
|
380 | diff -r d89b0a12d229 -r f8954cd4dc1f g | |
381 | --- a/g Thu Jan 01 00:00:02 1970 +0000 |
|
381 | --- a/g Thu Jan 01 00:00:02 1970 +0000 | |
382 | +++ b/g Thu Jan 01 00:00:03 1970 +0000 |
|
382 | +++ b/g Thu Jan 01 00:00:03 1970 +0000 | |
383 | @@ -1,1 +1,2 @@ |
|
383 | @@ -1,1 +1,2 @@ | |
384 | f |
|
384 | f | |
385 | +g |
|
385 | +g | |
386 |
|
386 | |||
387 | changeset: 1:d89b0a12d229 |
|
387 | changeset: 1:d89b0a12d229 | |
388 | user: test |
|
388 | user: test | |
389 | date: Thu Jan 01 00:00:02 1970 +0000 |
|
389 | date: Thu Jan 01 00:00:02 1970 +0000 | |
390 | summary: b |
|
390 | summary: b | |
391 |
|
391 | |||
392 | diff -r 9161b9aeaf16 -r d89b0a12d229 b |
|
392 | diff -r 9161b9aeaf16 -r d89b0a12d229 b | |
393 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
393 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
394 | +++ b/b Thu Jan 01 00:00:02 1970 +0000 |
|
394 | +++ b/b Thu Jan 01 00:00:02 1970 +0000 | |
395 | @@ -0,0 +1,1 @@ |
|
395 | @@ -0,0 +1,1 @@ | |
396 | +a |
|
396 | +a | |
397 | diff -r 9161b9aeaf16 -r d89b0a12d229 g |
|
397 | diff -r 9161b9aeaf16 -r d89b0a12d229 g | |
398 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
398 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
399 | +++ b/g Thu Jan 01 00:00:02 1970 +0000 |
|
399 | +++ b/g Thu Jan 01 00:00:02 1970 +0000 | |
400 | @@ -0,0 +1,1 @@ |
|
400 | @@ -0,0 +1,1 @@ | |
401 | +f |
|
401 | +f | |
402 |
|
402 | |||
403 | changeset: 0:9161b9aeaf16 |
|
403 | changeset: 0:9161b9aeaf16 | |
404 | user: test |
|
404 | user: test | |
405 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
405 | date: Thu Jan 01 00:00:01 1970 +0000 | |
406 | summary: a |
|
406 | summary: a | |
407 |
|
407 | |||
408 | diff -r 000000000000 -r 9161b9aeaf16 a |
|
408 | diff -r 000000000000 -r 9161b9aeaf16 a | |
409 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
409 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
410 | +++ b/a Thu Jan 01 00:00:01 1970 +0000 |
|
410 | +++ b/a Thu Jan 01 00:00:01 1970 +0000 | |
411 | @@ -0,0 +1,1 @@ |
|
411 | @@ -0,0 +1,1 @@ | |
412 | +a |
|
412 | +a | |
413 | diff -r 000000000000 -r 9161b9aeaf16 f |
|
413 | diff -r 000000000000 -r 9161b9aeaf16 f | |
414 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
414 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
415 | +++ b/f Thu Jan 01 00:00:01 1970 +0000 |
|
415 | +++ b/f Thu Jan 01 00:00:01 1970 +0000 | |
416 | @@ -0,0 +1,1 @@ |
|
416 | @@ -0,0 +1,1 @@ | |
417 | +f |
|
417 | +f | |
418 |
|
418 | |||
419 |
|
419 | |||
420 | log -vf dir/b |
|
420 | log -vf dir/b | |
421 |
|
421 | |||
422 | $ hg log -vf dir/b |
|
422 | $ hg log -vf dir/b | |
423 | changeset: 2:f8954cd4dc1f |
|
423 | changeset: 2:f8954cd4dc1f | |
424 | user: test |
|
424 | user: test | |
425 | date: Thu Jan 01 00:00:03 1970 +0000 |
|
425 | date: Thu Jan 01 00:00:03 1970 +0000 | |
426 | files: b dir/b f g |
|
426 | files: b dir/b f g | |
427 | description: |
|
427 | description: | |
428 | c |
|
428 | c | |
429 |
|
429 | |||
430 |
|
430 | |||
431 | changeset: 1:d89b0a12d229 |
|
431 | changeset: 1:d89b0a12d229 | |
432 | user: test |
|
432 | user: test | |
433 | date: Thu Jan 01 00:00:02 1970 +0000 |
|
433 | date: Thu Jan 01 00:00:02 1970 +0000 | |
434 | files: b g |
|
434 | files: b g | |
435 | description: |
|
435 | description: | |
436 | b |
|
436 | b | |
437 |
|
437 | |||
438 |
|
438 | |||
439 | changeset: 0:9161b9aeaf16 |
|
439 | changeset: 0:9161b9aeaf16 | |
440 | user: test |
|
440 | user: test | |
441 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
441 | date: Thu Jan 01 00:00:01 1970 +0000 | |
442 | files: a f |
|
442 | files: a f | |
443 | description: |
|
443 | description: | |
444 | a |
|
444 | a | |
445 |
|
445 | |||
446 |
|
446 | |||
447 |
|
447 | |||
448 |
|
448 | |||
449 | -f and multiple filelog heads |
|
449 | -f and multiple filelog heads | |
450 |
|
450 | |||
451 | $ hg up -q 2 |
|
451 | $ hg up -q 2 | |
452 | $ hg log -f g --template '{rev}\n' |
|
452 | $ hg log -f g --template '{rev}\n' | |
453 | 2 |
|
453 | 2 | |
454 | 1 |
|
454 | 1 | |
455 | 0 |
|
455 | 0 | |
456 | $ hg up -q tip |
|
456 | $ hg up -q tip | |
457 | $ hg log -f g --template '{rev}\n' |
|
457 | $ hg log -f g --template '{rev}\n' | |
458 | 3 |
|
458 | 3 | |
459 | 2 |
|
459 | 2 | |
460 | 0 |
|
460 | 0 | |
461 |
|
461 | |||
462 |
|
462 | |||
463 | log copies with --copies |
|
463 | log copies with --copies | |
464 |
|
464 | |||
465 | $ hg log -vC --template '{rev} {file_copies}\n' |
|
465 | $ hg log -vC --template '{rev} {file_copies}\n' | |
466 | 4 e (dir/b) |
|
466 | 4 e (dir/b) | |
467 | 3 b (a)g (f) |
|
467 | 3 b (a)g (f) | |
468 | 2 dir/b (b) |
|
468 | 2 dir/b (b) | |
469 | 1 b (a)g (f) |
|
469 | 1 b (a)g (f) | |
470 | 0 |
|
470 | 0 | |
471 |
|
471 | |||
472 | log copies switch without --copies, with old filecopy template |
|
472 | log copies switch without --copies, with old filecopy template | |
473 |
|
473 | |||
474 | $ hg log -v --template '{rev} {file_copies_switch%filecopy}\n' |
|
474 | $ hg log -v --template '{rev} {file_copies_switch%filecopy}\n' | |
475 | 4 |
|
475 | 4 | |
476 | 3 |
|
476 | 3 | |
477 | 2 |
|
477 | 2 | |
478 | 1 |
|
478 | 1 | |
479 | 0 |
|
479 | 0 | |
480 |
|
480 | |||
481 | log copies switch with --copies |
|
481 | log copies switch with --copies | |
482 |
|
482 | |||
483 | $ hg log -vC --template '{rev} {file_copies_switch}\n' |
|
483 | $ hg log -vC --template '{rev} {file_copies_switch}\n' | |
484 | 4 e (dir/b) |
|
484 | 4 e (dir/b) | |
485 | 3 b (a)g (f) |
|
485 | 3 b (a)g (f) | |
486 | 2 dir/b (b) |
|
486 | 2 dir/b (b) | |
487 | 1 b (a)g (f) |
|
487 | 1 b (a)g (f) | |
488 | 0 |
|
488 | 0 | |
489 |
|
489 | |||
490 |
|
490 | |||
491 | log copies with hardcoded style and with --style=default |
|
491 | log copies with hardcoded style and with --style=default | |
492 |
|
492 | |||
493 | $ hg log -vC -r4 |
|
493 | $ hg log -vC -r4 | |
494 | changeset: 4:7e4639b4691b |
|
494 | changeset: 4:7e4639b4691b | |
495 | tag: tip |
|
495 | tag: tip | |
496 | user: test |
|
496 | user: test | |
497 | date: Thu Jan 01 00:00:05 1970 +0000 |
|
497 | date: Thu Jan 01 00:00:05 1970 +0000 | |
498 | files: dir/b e |
|
498 | files: dir/b e | |
499 | copies: e (dir/b) |
|
499 | copies: e (dir/b) | |
500 | description: |
|
500 | description: | |
501 | e |
|
501 | e | |
502 |
|
502 | |||
503 |
|
503 | |||
504 | $ hg log -vC -r4 --style=default |
|
504 | $ hg log -vC -r4 --style=default | |
505 | changeset: 4:7e4639b4691b |
|
505 | changeset: 4:7e4639b4691b | |
506 | tag: tip |
|
506 | tag: tip | |
507 | user: test |
|
507 | user: test | |
508 | date: Thu Jan 01 00:00:05 1970 +0000 |
|
508 | date: Thu Jan 01 00:00:05 1970 +0000 | |
509 | files: dir/b e |
|
509 | files: dir/b e | |
510 | copies: e (dir/b) |
|
510 | copies: e (dir/b) | |
511 | description: |
|
511 | description: | |
512 | e |
|
512 | e | |
513 |
|
513 | |||
514 |
|
514 | |||
515 | $ hg log -vC -r4 -Tjson |
|
515 | $ hg log -vC -r4 -Tjson | |
516 | [ |
|
516 | [ | |
517 | { |
|
517 | { | |
518 | "rev": 4, |
|
518 | "rev": 4, | |
519 | "node": "7e4639b4691b9f84b81036a8d4fb218ce3c5e3a3", |
|
519 | "node": "7e4639b4691b9f84b81036a8d4fb218ce3c5e3a3", | |
520 | "branch": "default", |
|
520 | "branch": "default", | |
521 | "phase": "draft", |
|
521 | "phase": "draft", | |
522 | "user": "test", |
|
522 | "user": "test", | |
523 | "date": [5, 0], |
|
523 | "date": [5, 0], | |
524 | "desc": "e", |
|
524 | "desc": "e", | |
525 | "bookmarks": [], |
|
525 | "bookmarks": [], | |
526 | "tags": ["tip"], |
|
526 | "tags": ["tip"], | |
527 | "parents": ["2ca5ba7019804f1f597249caddf22a64d34df0ba"], |
|
527 | "parents": ["2ca5ba7019804f1f597249caddf22a64d34df0ba"], | |
528 | "files": ["dir/b", "e"], |
|
528 | "files": ["dir/b", "e"], | |
529 | "copies": {"e": "dir/b"} |
|
529 | "copies": {"e": "dir/b"} | |
530 | } |
|
530 | } | |
531 | ] |
|
531 | ] | |
532 |
|
532 | |||
533 | log copies, non-linear manifest |
|
533 | log copies, non-linear manifest | |
534 |
|
534 | |||
535 | $ hg up -C 3 |
|
535 | $ hg up -C 3 | |
536 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
536 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
537 | $ hg mv dir/b e |
|
537 | $ hg mv dir/b e | |
538 | $ echo foo > foo |
|
538 | $ echo foo > foo | |
539 | $ hg ci -Ame2 -d '6 0' |
|
539 | $ hg ci -Ame2 -d '6 0' | |
540 | adding foo |
|
540 | adding foo | |
541 | created new head |
|
541 | created new head | |
542 | $ hg log -v --template '{rev} {file_copies}\n' -r 5 |
|
542 | $ hg log -v --template '{rev} {file_copies}\n' -r 5 | |
543 | 5 e (dir/b) |
|
543 | 5 e (dir/b) | |
544 |
|
544 | |||
545 |
|
545 | |||
546 | log copies, execute bit set |
|
546 | log copies, execute bit set | |
547 |
|
547 | |||
548 | #if execbit |
|
548 | #if execbit | |
549 | $ chmod +x e |
|
549 | $ chmod +x e | |
550 | $ hg ci -me3 -d '7 0' |
|
550 | $ hg ci -me3 -d '7 0' | |
551 | $ hg log -v --template '{rev} {file_copies}\n' -r 6 |
|
551 | $ hg log -v --template '{rev} {file_copies}\n' -r 6 | |
552 | 6 |
|
552 | 6 | |
553 | #endif |
|
553 | #endif | |
554 |
|
554 | |||
555 |
|
555 | |||
556 | log -p d |
|
556 | log -p d | |
557 |
|
557 | |||
558 | $ hg log -pv d |
|
558 | $ hg log -pv d | |
559 | changeset: 3:2ca5ba701980 |
|
559 | changeset: 3:2ca5ba701980 | |
560 | user: test |
|
560 | user: test | |
561 | date: Thu Jan 01 00:00:04 1970 +0000 |
|
561 | date: Thu Jan 01 00:00:04 1970 +0000 | |
562 | files: a b d g |
|
562 | files: a b d g | |
563 | description: |
|
563 | description: | |
564 | d |
|
564 | d | |
565 |
|
565 | |||
566 |
|
566 | |||
567 | diff -r f8954cd4dc1f -r 2ca5ba701980 d |
|
567 | diff -r f8954cd4dc1f -r 2ca5ba701980 d | |
568 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
568 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
569 | +++ b/d Thu Jan 01 00:00:04 1970 +0000 |
|
569 | +++ b/d Thu Jan 01 00:00:04 1970 +0000 | |
570 | @@ -0,0 +1,1 @@ |
|
570 | @@ -0,0 +1,1 @@ | |
571 | +a |
|
571 | +a | |
572 |
|
572 | |||
573 |
|
573 | |||
574 |
|
574 | |||
575 | log --removed file |
|
575 | log --removed file | |
576 |
|
576 | |||
577 | $ hg log --removed -v a |
|
577 | $ hg log --removed -v a | |
578 | changeset: 3:2ca5ba701980 |
|
578 | changeset: 3:2ca5ba701980 | |
579 | user: test |
|
579 | user: test | |
580 | date: Thu Jan 01 00:00:04 1970 +0000 |
|
580 | date: Thu Jan 01 00:00:04 1970 +0000 | |
581 | files: a b d g |
|
581 | files: a b d g | |
582 | description: |
|
582 | description: | |
583 | d |
|
583 | d | |
584 |
|
584 | |||
585 |
|
585 | |||
586 | changeset: 0:9161b9aeaf16 |
|
586 | changeset: 0:9161b9aeaf16 | |
587 | user: test |
|
587 | user: test | |
588 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
588 | date: Thu Jan 01 00:00:01 1970 +0000 | |
589 | files: a f |
|
589 | files: a f | |
590 | description: |
|
590 | description: | |
591 | a |
|
591 | a | |
592 |
|
592 | |||
593 |
|
593 | |||
594 |
|
594 | |||
595 | log --removed revrange file |
|
595 | log --removed revrange file | |
596 |
|
596 | |||
597 | $ hg log --removed -v -r0:2 a |
|
597 | $ hg log --removed -v -r0:2 a | |
598 | changeset: 0:9161b9aeaf16 |
|
598 | changeset: 0:9161b9aeaf16 | |
599 | user: test |
|
599 | user: test | |
600 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
600 | date: Thu Jan 01 00:00:01 1970 +0000 | |
601 | files: a f |
|
601 | files: a f | |
602 | description: |
|
602 | description: | |
603 | a |
|
603 | a | |
604 |
|
604 | |||
605 |
|
605 | |||
606 | $ cd .. |
|
606 | $ cd .. | |
607 |
|
607 | |||
608 | log --follow tests |
|
608 | log --follow tests | |
609 |
|
609 | |||
610 | $ hg init follow |
|
610 | $ hg init follow | |
611 | $ cd follow |
|
611 | $ cd follow | |
612 |
|
612 | |||
613 | $ echo base > base |
|
613 | $ echo base > base | |
614 | $ hg ci -Ambase -d '1 0' |
|
614 | $ hg ci -Ambase -d '1 0' | |
615 | adding base |
|
615 | adding base | |
616 |
|
616 | |||
617 | $ echo r1 >> base |
|
617 | $ echo r1 >> base | |
618 | $ hg ci -Amr1 -d '1 0' |
|
618 | $ hg ci -Amr1 -d '1 0' | |
619 | $ echo r2 >> base |
|
619 | $ echo r2 >> base | |
620 | $ hg ci -Amr2 -d '1 0' |
|
620 | $ hg ci -Amr2 -d '1 0' | |
621 |
|
621 | |||
622 | $ hg up -C 1 |
|
622 | $ hg up -C 1 | |
623 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
623 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
624 | $ echo b1 > b1 |
|
624 | $ echo b1 > b1 | |
625 |
|
625 | |||
626 | log -r "follow('set:clean()')" |
|
626 | log -r "follow('set:clean()')" | |
627 |
|
627 | |||
628 | $ hg log -r "follow('set:clean()')" |
|
628 | $ hg log -r "follow('set:clean()')" | |
629 | changeset: 0:67e992f2c4f3 |
|
629 | changeset: 0:67e992f2c4f3 | |
630 | user: test |
|
630 | user: test | |
631 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
631 | date: Thu Jan 01 00:00:01 1970 +0000 | |
632 | summary: base |
|
632 | summary: base | |
633 |
|
633 | |||
634 | changeset: 1:3d5bf5654eda |
|
634 | changeset: 1:3d5bf5654eda | |
635 | user: test |
|
635 | user: test | |
636 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
636 | date: Thu Jan 01 00:00:01 1970 +0000 | |
637 | summary: r1 |
|
637 | summary: r1 | |
638 |
|
638 | |||
639 |
|
639 | |||
640 | $ hg ci -Amb1 -d '1 0' |
|
640 | $ hg ci -Amb1 -d '1 0' | |
641 | adding b1 |
|
641 | adding b1 | |
642 | created new head |
|
642 | created new head | |
643 |
|
643 | |||
644 |
|
644 | |||
645 | log -f |
|
645 | log -f | |
646 |
|
646 | |||
647 | $ hg log -f |
|
647 | $ hg log -f | |
648 | changeset: 3:e62f78d544b4 |
|
648 | changeset: 3:e62f78d544b4 | |
649 | tag: tip |
|
649 | tag: tip | |
650 | parent: 1:3d5bf5654eda |
|
650 | parent: 1:3d5bf5654eda | |
651 | user: test |
|
651 | user: test | |
652 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
652 | date: Thu Jan 01 00:00:01 1970 +0000 | |
653 | summary: b1 |
|
653 | summary: b1 | |
654 |
|
654 | |||
655 | changeset: 1:3d5bf5654eda |
|
655 | changeset: 1:3d5bf5654eda | |
656 | user: test |
|
656 | user: test | |
657 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
657 | date: Thu Jan 01 00:00:01 1970 +0000 | |
658 | summary: r1 |
|
658 | summary: r1 | |
659 |
|
659 | |||
660 | changeset: 0:67e992f2c4f3 |
|
660 | changeset: 0:67e992f2c4f3 | |
661 | user: test |
|
661 | user: test | |
662 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
662 | date: Thu Jan 01 00:00:01 1970 +0000 | |
663 | summary: base |
|
663 | summary: base | |
664 |
|
664 | |||
665 |
|
665 | |||
666 | log -r follow('glob:b*') |
|
666 | log -r follow('glob:b*') | |
667 |
|
667 | |||
668 | $ hg log -r "follow('glob:b*')" |
|
668 | $ hg log -r "follow('glob:b*')" | |
669 | changeset: 0:67e992f2c4f3 |
|
669 | changeset: 0:67e992f2c4f3 | |
670 | user: test |
|
670 | user: test | |
671 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
671 | date: Thu Jan 01 00:00:01 1970 +0000 | |
672 | summary: base |
|
672 | summary: base | |
673 |
|
673 | |||
674 | changeset: 1:3d5bf5654eda |
|
674 | changeset: 1:3d5bf5654eda | |
675 | user: test |
|
675 | user: test | |
676 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
676 | date: Thu Jan 01 00:00:01 1970 +0000 | |
677 | summary: r1 |
|
677 | summary: r1 | |
678 |
|
678 | |||
679 | changeset: 3:e62f78d544b4 |
|
679 | changeset: 3:e62f78d544b4 | |
680 | tag: tip |
|
680 | tag: tip | |
681 | parent: 1:3d5bf5654eda |
|
681 | parent: 1:3d5bf5654eda | |
682 | user: test |
|
682 | user: test | |
683 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
683 | date: Thu Jan 01 00:00:01 1970 +0000 | |
684 | summary: b1 |
|
684 | summary: b1 | |
685 |
|
685 | |||
686 | log -f -r '1 + 4' |
|
686 | log -f -r '1 + 4' | |
687 |
|
687 | |||
688 | $ hg up -C 0 |
|
688 | $ hg up -C 0 | |
689 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
689 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
690 | $ echo b2 > b2 |
|
690 | $ echo b2 > b2 | |
691 | $ hg ci -Amb2 -d '1 0' |
|
691 | $ hg ci -Amb2 -d '1 0' | |
692 | adding b2 |
|
692 | adding b2 | |
693 | created new head |
|
693 | created new head | |
694 | $ hg log -f -r '1 + 4' |
|
694 | $ hg log -f -r '1 + 4' | |
695 | changeset: 4:ddb82e70d1a1 |
|
695 | changeset: 4:ddb82e70d1a1 | |
696 | tag: tip |
|
696 | tag: tip | |
697 | parent: 0:67e992f2c4f3 |
|
697 | parent: 0:67e992f2c4f3 | |
698 | user: test |
|
698 | user: test | |
699 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
699 | date: Thu Jan 01 00:00:01 1970 +0000 | |
700 | summary: b2 |
|
700 | summary: b2 | |
701 |
|
701 | |||
702 | changeset: 1:3d5bf5654eda |
|
702 | changeset: 1:3d5bf5654eda | |
703 | user: test |
|
703 | user: test | |
704 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
704 | date: Thu Jan 01 00:00:01 1970 +0000 | |
705 | summary: r1 |
|
705 | summary: r1 | |
706 |
|
706 | |||
707 | changeset: 0:67e992f2c4f3 |
|
707 | changeset: 0:67e992f2c4f3 | |
708 | user: test |
|
708 | user: test | |
709 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
709 | date: Thu Jan 01 00:00:01 1970 +0000 | |
710 | summary: base |
|
710 | summary: base | |
711 |
|
711 | |||
712 | log -r "follow('set:grep(b2)')" |
|
712 | log -r "follow('set:grep(b2)')" | |
713 |
|
713 | |||
714 | $ hg log -r "follow('set:grep(b2)')" |
|
714 | $ hg log -r "follow('set:grep(b2)')" | |
715 | changeset: 4:ddb82e70d1a1 |
|
715 | changeset: 4:ddb82e70d1a1 | |
716 | tag: tip |
|
716 | tag: tip | |
717 | parent: 0:67e992f2c4f3 |
|
717 | parent: 0:67e992f2c4f3 | |
718 | user: test |
|
718 | user: test | |
719 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
719 | date: Thu Jan 01 00:00:01 1970 +0000 | |
720 | summary: b2 |
|
720 | summary: b2 | |
721 |
|
721 | |||
722 | log -r "follow('set:grep(b2)', 4)" |
|
722 | log -r "follow('set:grep(b2)', 4)" | |
723 |
|
723 | |||
724 | $ hg up -qC 0 |
|
724 | $ hg up -qC 0 | |
725 | $ hg log -r "follow('set:grep(b2)', 4)" |
|
725 | $ hg log -r "follow('set:grep(b2)', 4)" | |
726 | changeset: 4:ddb82e70d1a1 |
|
726 | changeset: 4:ddb82e70d1a1 | |
727 | tag: tip |
|
727 | tag: tip | |
728 | parent: 0:67e992f2c4f3 |
|
728 | parent: 0:67e992f2c4f3 | |
729 | user: test |
|
729 | user: test | |
730 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
730 | date: Thu Jan 01 00:00:01 1970 +0000 | |
731 | summary: b2 |
|
731 | summary: b2 | |
732 |
|
732 | |||
733 | $ hg up -qC 4 |
|
733 | $ hg up -qC 4 | |
734 |
|
734 | |||
735 | log -f -r null |
|
735 | log -f -r null | |
736 |
|
736 | |||
737 | $ hg log -f -r null |
|
737 | $ hg log -f -r null | |
738 | changeset: -1:000000000000 |
|
738 | changeset: -1:000000000000 | |
739 | user: |
|
739 | user: | |
740 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
740 | date: Thu Jan 01 00:00:00 1970 +0000 | |
741 |
|
741 | |||
742 | $ hg log -f -r null -G |
|
742 | $ hg log -f -r null -G | |
743 | o changeset: -1:000000000000 |
|
743 | o changeset: -1:000000000000 | |
744 | user: |
|
744 | user: | |
745 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
745 | date: Thu Jan 01 00:00:00 1970 +0000 | |
746 |
|
746 | |||
747 |
|
747 | |||
748 |
|
748 | |||
749 | log -f with null parent |
|
749 | log -f with null parent | |
750 |
|
750 | |||
751 | $ hg up -C null |
|
751 | $ hg up -C null | |
752 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
|
752 | 0 files updated, 0 files merged, 2 files removed, 0 files unresolved | |
753 | $ hg log -f |
|
753 | $ hg log -f | |
754 |
|
754 | |||
755 |
|
755 | |||
756 | log -r . with two parents |
|
756 | log -r . with two parents | |
757 |
|
757 | |||
758 | $ hg up -C 3 |
|
758 | $ hg up -C 3 | |
759 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
759 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
760 | $ hg merge tip |
|
760 | $ hg merge tip | |
761 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
761 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
762 | (branch merge, don't forget to commit) |
|
762 | (branch merge, don't forget to commit) | |
763 | $ hg log -r . |
|
763 | $ hg log -r . | |
764 | changeset: 3:e62f78d544b4 |
|
764 | changeset: 3:e62f78d544b4 | |
765 | parent: 1:3d5bf5654eda |
|
765 | parent: 1:3d5bf5654eda | |
766 | user: test |
|
766 | user: test | |
767 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
767 | date: Thu Jan 01 00:00:01 1970 +0000 | |
768 | summary: b1 |
|
768 | summary: b1 | |
769 |
|
769 | |||
770 |
|
770 | |||
771 |
|
771 | |||
772 | log -r . with one parent |
|
772 | log -r . with one parent | |
773 |
|
773 | |||
774 | $ hg ci -mm12 -d '1 0' |
|
774 | $ hg ci -mm12 -d '1 0' | |
775 | $ hg log -r . |
|
775 | $ hg log -r . | |
776 | changeset: 5:302e9dd6890d |
|
776 | changeset: 5:302e9dd6890d | |
777 | tag: tip |
|
777 | tag: tip | |
778 | parent: 3:e62f78d544b4 |
|
778 | parent: 3:e62f78d544b4 | |
779 | parent: 4:ddb82e70d1a1 |
|
779 | parent: 4:ddb82e70d1a1 | |
780 | user: test |
|
780 | user: test | |
781 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
781 | date: Thu Jan 01 00:00:01 1970 +0000 | |
782 | summary: m12 |
|
782 | summary: m12 | |
783 |
|
783 | |||
784 |
|
784 | |||
785 | $ echo postm >> b1 |
|
785 | $ echo postm >> b1 | |
786 | $ hg ci -Amb1.1 -d'1 0' |
|
786 | $ hg ci -Amb1.1 -d'1 0' | |
787 |
|
787 | |||
788 |
|
788 | |||
789 | log --follow-first |
|
789 | log --follow-first | |
790 |
|
790 | |||
791 | $ hg log --follow-first |
|
791 | $ hg log --follow-first | |
792 | changeset: 6:2404bbcab562 |
|
792 | changeset: 6:2404bbcab562 | |
793 | tag: tip |
|
793 | tag: tip | |
794 | user: test |
|
794 | user: test | |
795 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
795 | date: Thu Jan 01 00:00:01 1970 +0000 | |
796 | summary: b1.1 |
|
796 | summary: b1.1 | |
797 |
|
797 | |||
798 | changeset: 5:302e9dd6890d |
|
798 | changeset: 5:302e9dd6890d | |
799 | parent: 3:e62f78d544b4 |
|
799 | parent: 3:e62f78d544b4 | |
800 | parent: 4:ddb82e70d1a1 |
|
800 | parent: 4:ddb82e70d1a1 | |
801 | user: test |
|
801 | user: test | |
802 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
802 | date: Thu Jan 01 00:00:01 1970 +0000 | |
803 | summary: m12 |
|
803 | summary: m12 | |
804 |
|
804 | |||
805 | changeset: 3:e62f78d544b4 |
|
805 | changeset: 3:e62f78d544b4 | |
806 | parent: 1:3d5bf5654eda |
|
806 | parent: 1:3d5bf5654eda | |
807 | user: test |
|
807 | user: test | |
808 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
808 | date: Thu Jan 01 00:00:01 1970 +0000 | |
809 | summary: b1 |
|
809 | summary: b1 | |
810 |
|
810 | |||
811 | changeset: 1:3d5bf5654eda |
|
811 | changeset: 1:3d5bf5654eda | |
812 | user: test |
|
812 | user: test | |
813 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
813 | date: Thu Jan 01 00:00:01 1970 +0000 | |
814 | summary: r1 |
|
814 | summary: r1 | |
815 |
|
815 | |||
816 | changeset: 0:67e992f2c4f3 |
|
816 | changeset: 0:67e992f2c4f3 | |
817 | user: test |
|
817 | user: test | |
818 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
818 | date: Thu Jan 01 00:00:01 1970 +0000 | |
819 | summary: base |
|
819 | summary: base | |
820 |
|
820 | |||
821 |
|
821 | |||
822 |
|
822 | |||
823 | log -P 2 |
|
823 | log -P 2 | |
824 |
|
824 | |||
825 | $ hg log -P 2 |
|
825 | $ hg log -P 2 | |
826 | changeset: 6:2404bbcab562 |
|
826 | changeset: 6:2404bbcab562 | |
827 | tag: tip |
|
827 | tag: tip | |
828 | user: test |
|
828 | user: test | |
829 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
829 | date: Thu Jan 01 00:00:01 1970 +0000 | |
830 | summary: b1.1 |
|
830 | summary: b1.1 | |
831 |
|
831 | |||
832 | changeset: 5:302e9dd6890d |
|
832 | changeset: 5:302e9dd6890d | |
833 | parent: 3:e62f78d544b4 |
|
833 | parent: 3:e62f78d544b4 | |
834 | parent: 4:ddb82e70d1a1 |
|
834 | parent: 4:ddb82e70d1a1 | |
835 | user: test |
|
835 | user: test | |
836 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
836 | date: Thu Jan 01 00:00:01 1970 +0000 | |
837 | summary: m12 |
|
837 | summary: m12 | |
838 |
|
838 | |||
839 | changeset: 4:ddb82e70d1a1 |
|
839 | changeset: 4:ddb82e70d1a1 | |
840 | parent: 0:67e992f2c4f3 |
|
840 | parent: 0:67e992f2c4f3 | |
841 | user: test |
|
841 | user: test | |
842 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
842 | date: Thu Jan 01 00:00:01 1970 +0000 | |
843 | summary: b2 |
|
843 | summary: b2 | |
844 |
|
844 | |||
845 | changeset: 3:e62f78d544b4 |
|
845 | changeset: 3:e62f78d544b4 | |
846 | parent: 1:3d5bf5654eda |
|
846 | parent: 1:3d5bf5654eda | |
847 | user: test |
|
847 | user: test | |
848 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
848 | date: Thu Jan 01 00:00:01 1970 +0000 | |
849 | summary: b1 |
|
849 | summary: b1 | |
850 |
|
850 | |||
851 |
|
851 | |||
852 |
|
852 | |||
853 | log -r tip -p --git |
|
853 | log -r tip -p --git | |
854 |
|
854 | |||
855 | $ hg log -r tip -p --git |
|
855 | $ hg log -r tip -p --git | |
856 | changeset: 6:2404bbcab562 |
|
856 | changeset: 6:2404bbcab562 | |
857 | tag: tip |
|
857 | tag: tip | |
858 | user: test |
|
858 | user: test | |
859 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
859 | date: Thu Jan 01 00:00:01 1970 +0000 | |
860 | summary: b1.1 |
|
860 | summary: b1.1 | |
861 |
|
861 | |||
862 | diff --git a/b1 b/b1 |
|
862 | diff --git a/b1 b/b1 | |
863 | --- a/b1 |
|
863 | --- a/b1 | |
864 | +++ b/b1 |
|
864 | +++ b/b1 | |
865 | @@ -1,1 +1,2 @@ |
|
865 | @@ -1,1 +1,2 @@ | |
866 | b1 |
|
866 | b1 | |
867 | +postm |
|
867 | +postm | |
868 |
|
868 | |||
869 |
|
869 | |||
870 |
|
870 | |||
871 | log -r "" |
|
871 | log -r "" | |
872 |
|
872 | |||
873 | $ hg log -r '' |
|
873 | $ hg log -r '' | |
874 | hg: parse error: empty query |
|
874 | hg: parse error: empty query | |
875 | [255] |
|
875 | [255] | |
876 |
|
876 | |||
877 | log -r <some unknown node id> |
|
877 | log -r <some unknown node id> | |
878 |
|
878 | |||
879 | $ hg log -r 1000000000000000000000000000000000000000 |
|
879 | $ hg log -r 1000000000000000000000000000000000000000 | |
880 | abort: unknown revision '1000000000000000000000000000000000000000'! |
|
880 | abort: unknown revision '1000000000000000000000000000000000000000'! | |
881 | [255] |
|
881 | [255] | |
882 |
|
882 | |||
883 | log -k r1 |
|
883 | log -k r1 | |
884 |
|
884 | |||
885 | $ hg log -k r1 |
|
885 | $ hg log -k r1 | |
886 | changeset: 1:3d5bf5654eda |
|
886 | changeset: 1:3d5bf5654eda | |
887 | user: test |
|
887 | user: test | |
888 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
888 | date: Thu Jan 01 00:00:01 1970 +0000 | |
889 | summary: r1 |
|
889 | summary: r1 | |
890 |
|
890 | |||
891 | log -p -l2 --color=always |
|
891 | log -p -l2 --color=always | |
892 |
|
892 | |||
893 | $ hg --config extensions.color= --config color.mode=ansi \ |
|
893 | $ hg --config extensions.color= --config color.mode=ansi \ | |
894 | > log -p -l2 --color=always |
|
894 | > log -p -l2 --color=always | |
895 | \x1b[0;33mchangeset: 6:2404bbcab562\x1b[0m (esc) |
|
895 | \x1b[0;33mchangeset: 6:2404bbcab562\x1b[0m (esc) | |
896 | tag: tip |
|
896 | tag: tip | |
897 | user: test |
|
897 | user: test | |
898 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
898 | date: Thu Jan 01 00:00:01 1970 +0000 | |
899 | summary: b1.1 |
|
899 | summary: b1.1 | |
900 |
|
900 | |||
901 | \x1b[0;1mdiff -r 302e9dd6890d -r 2404bbcab562 b1\x1b[0m (esc) |
|
901 | \x1b[0;1mdiff -r 302e9dd6890d -r 2404bbcab562 b1\x1b[0m (esc) | |
902 | \x1b[0;31;1m--- a/b1 Thu Jan 01 00:00:01 1970 +0000\x1b[0m (esc) |
|
902 | \x1b[0;31;1m--- a/b1 Thu Jan 01 00:00:01 1970 +0000\x1b[0m (esc) | |
903 | \x1b[0;32;1m+++ b/b1 Thu Jan 01 00:00:01 1970 +0000\x1b[0m (esc) |
|
903 | \x1b[0;32;1m+++ b/b1 Thu Jan 01 00:00:01 1970 +0000\x1b[0m (esc) | |
904 | \x1b[0;35m@@ -1,1 +1,2 @@\x1b[0m (esc) |
|
904 | \x1b[0;35m@@ -1,1 +1,2 @@\x1b[0m (esc) | |
905 | b1 |
|
905 | b1 | |
906 | \x1b[0;32m+postm\x1b[0m (esc) |
|
906 | \x1b[0;32m+postm\x1b[0m (esc) | |
907 |
|
907 | |||
908 | \x1b[0;33mchangeset: 5:302e9dd6890d\x1b[0m (esc) |
|
908 | \x1b[0;33mchangeset: 5:302e9dd6890d\x1b[0m (esc) | |
909 | parent: 3:e62f78d544b4 |
|
909 | parent: 3:e62f78d544b4 | |
910 | parent: 4:ddb82e70d1a1 |
|
910 | parent: 4:ddb82e70d1a1 | |
911 | user: test |
|
911 | user: test | |
912 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
912 | date: Thu Jan 01 00:00:01 1970 +0000 | |
913 | summary: m12 |
|
913 | summary: m12 | |
914 |
|
914 | |||
915 | \x1b[0;1mdiff -r e62f78d544b4 -r 302e9dd6890d b2\x1b[0m (esc) |
|
915 | \x1b[0;1mdiff -r e62f78d544b4 -r 302e9dd6890d b2\x1b[0m (esc) | |
916 | \x1b[0;31;1m--- /dev/null Thu Jan 01 00:00:00 1970 +0000\x1b[0m (esc) |
|
916 | \x1b[0;31;1m--- /dev/null Thu Jan 01 00:00:00 1970 +0000\x1b[0m (esc) | |
917 | \x1b[0;32;1m+++ b/b2 Thu Jan 01 00:00:01 1970 +0000\x1b[0m (esc) |
|
917 | \x1b[0;32;1m+++ b/b2 Thu Jan 01 00:00:01 1970 +0000\x1b[0m (esc) | |
918 | \x1b[0;35m@@ -0,0 +1,1 @@\x1b[0m (esc) |
|
918 | \x1b[0;35m@@ -0,0 +1,1 @@\x1b[0m (esc) | |
919 | \x1b[0;32m+b2\x1b[0m (esc) |
|
919 | \x1b[0;32m+b2\x1b[0m (esc) | |
920 |
|
920 | |||
921 |
|
921 | |||
922 |
|
922 | |||
923 | log -r tip --stat |
|
923 | log -r tip --stat | |
924 |
|
924 | |||
925 | $ hg log -r tip --stat |
|
925 | $ hg log -r tip --stat | |
926 | changeset: 6:2404bbcab562 |
|
926 | changeset: 6:2404bbcab562 | |
927 | tag: tip |
|
927 | tag: tip | |
928 | user: test |
|
928 | user: test | |
929 | date: Thu Jan 01 00:00:01 1970 +0000 |
|
929 | date: Thu Jan 01 00:00:01 1970 +0000 | |
930 | summary: b1.1 |
|
930 | summary: b1.1 | |
931 |
|
931 | |||
932 | b1 | 1 + |
|
932 | b1 | 1 + | |
933 | 1 files changed, 1 insertions(+), 0 deletions(-) |
|
933 | 1 files changed, 1 insertions(+), 0 deletions(-) | |
934 |
|
934 | |||
935 |
|
935 | |||
936 | $ cd .. |
|
936 | $ cd .. | |
937 |
|
937 | |||
938 | log --follow --patch FILE in repository where linkrev isn't trustworthy |
|
938 | log --follow --patch FILE in repository where linkrev isn't trustworthy | |
939 | (issue5376) |
|
939 | (issue5376) | |
940 |
|
940 | |||
941 | $ hg init follow-dup |
|
941 | $ hg init follow-dup | |
942 | $ cd follow-dup |
|
942 | $ cd follow-dup | |
943 | $ cat <<EOF >> .hg/hgrc |
|
943 | $ cat <<EOF >> .hg/hgrc | |
944 | > [ui] |
|
944 | > [ui] | |
945 | > logtemplate = '=== {rev}: {desc}\n' |
|
945 | > logtemplate = '=== {rev}: {desc}\n' | |
946 | > [diff] |
|
946 | > [diff] | |
947 | > nodates = True |
|
947 | > nodates = True | |
948 | > EOF |
|
948 | > EOF | |
949 | $ echo 0 >> a |
|
949 | $ echo 0 >> a | |
950 | $ hg ci -qAm 'a0' |
|
950 | $ hg ci -qAm 'a0' | |
951 | $ echo 1 >> a |
|
951 | $ echo 1 >> a | |
952 | $ hg ci -m 'a1' |
|
952 | $ hg ci -m 'a1' | |
953 | $ hg up -q 0 |
|
953 | $ hg up -q 0 | |
954 | $ echo 1 >> a |
|
954 | $ echo 1 >> a | |
955 | $ touch b |
|
955 | $ touch b | |
956 | $ hg ci -qAm 'a1 with b' |
|
956 | $ hg ci -qAm 'a1 with b' | |
957 | $ echo 3 >> a |
|
957 | $ echo 3 >> a | |
958 | $ hg ci -m 'a3' |
|
958 | $ hg ci -m 'a3' | |
959 |
|
959 | |||
960 | fctx.rev() == 2, but fctx.linkrev() == 1 |
|
960 | fctx.rev() == 2, but fctx.linkrev() == 1 | |
961 |
|
961 | |||
962 | $ hg log -pf a |
|
962 | $ hg log -pf a | |
963 | === 3: a3 |
|
963 | === 3: a3 | |
964 | diff -r 4ea02ba94d66 -r e7a6331a34f0 a |
|
964 | diff -r 4ea02ba94d66 -r e7a6331a34f0 a | |
965 | --- a/a |
|
965 | --- a/a | |
966 | +++ b/a |
|
966 | +++ b/a | |
967 | @@ -1,2 +1,3 @@ |
|
967 | @@ -1,2 +1,3 @@ | |
968 | 0 |
|
968 | 0 | |
969 | 1 |
|
969 | 1 | |
970 | +3 |
|
970 | +3 | |
971 |
|
971 | |||
972 | === 2: a1 with b |
|
972 | === 2: a1 with b | |
973 | diff -r 49b5e81287e2 -r 4ea02ba94d66 a |
|
973 | diff -r 49b5e81287e2 -r 4ea02ba94d66 a | |
974 | --- a/a |
|
974 | --- a/a | |
975 | +++ b/a |
|
975 | +++ b/a | |
976 | @@ -1,1 +1,2 @@ |
|
976 | @@ -1,1 +1,2 @@ | |
977 | 0 |
|
977 | 0 | |
978 | +1 |
|
978 | +1 | |
979 |
|
979 | |||
980 | === 0: a0 |
|
980 | === 0: a0 | |
981 | diff -r 000000000000 -r 49b5e81287e2 a |
|
981 | diff -r 000000000000 -r 49b5e81287e2 a | |
982 | --- /dev/null |
|
982 | --- /dev/null | |
983 | +++ b/a |
|
983 | +++ b/a | |
984 | @@ -0,0 +1,1 @@ |
|
984 | @@ -0,0 +1,1 @@ | |
985 | +0 |
|
985 | +0 | |
986 |
|
986 | |||
987 |
|
987 | |||
988 | fctx.introrev() == 2, but fctx.linkrev() == 1 |
|
988 | fctx.introrev() == 2, but fctx.linkrev() == 1 | |
989 |
|
989 | |||
990 | $ hg up -q 2 |
|
990 | $ hg up -q 2 | |
991 | $ hg log -pf a |
|
991 | $ hg log -pf a | |
992 | === 2: a1 with b |
|
992 | === 2: a1 with b | |
993 | diff -r 49b5e81287e2 -r 4ea02ba94d66 a |
|
993 | diff -r 49b5e81287e2 -r 4ea02ba94d66 a | |
994 | --- a/a |
|
994 | --- a/a | |
995 | +++ b/a |
|
995 | +++ b/a | |
996 | @@ -1,1 +1,2 @@ |
|
996 | @@ -1,1 +1,2 @@ | |
997 | 0 |
|
997 | 0 | |
998 | +1 |
|
998 | +1 | |
999 |
|
999 | |||
1000 | === 0: a0 |
|
1000 | === 0: a0 | |
1001 | diff -r 000000000000 -r 49b5e81287e2 a |
|
1001 | diff -r 000000000000 -r 49b5e81287e2 a | |
1002 | --- /dev/null |
|
1002 | --- /dev/null | |
1003 | +++ b/a |
|
1003 | +++ b/a | |
1004 | @@ -0,0 +1,1 @@ |
|
1004 | @@ -0,0 +1,1 @@ | |
1005 | +0 |
|
1005 | +0 | |
1006 |
|
1006 | |||
1007 |
|
1007 | |||
1008 | $ cd .. |
|
1008 | $ cd .. | |
1009 |
|
1009 | |||
1010 | Test that log should respect the order of -rREV even if multiple OR conditions |
|
1010 | Test that log should respect the order of -rREV even if multiple OR conditions | |
1011 | are specified (issue5100): |
|
1011 | are specified (issue5100): | |
1012 |
|
1012 | |||
1013 | $ hg init revorder |
|
1013 | $ hg init revorder | |
1014 | $ cd revorder |
|
1014 | $ cd revorder | |
1015 |
|
1015 | |||
1016 | $ hg branch -q b0 |
|
1016 | $ hg branch -q b0 | |
1017 | $ echo 0 >> f0 |
|
1017 | $ echo 0 >> f0 | |
1018 | $ hg ci -qAm k0 -u u0 |
|
1018 | $ hg ci -qAm k0 -u u0 | |
1019 | $ hg branch -q b1 |
|
1019 | $ hg branch -q b1 | |
1020 | $ echo 1 >> f1 |
|
1020 | $ echo 1 >> f1 | |
1021 | $ hg ci -qAm k1 -u u1 |
|
1021 | $ hg ci -qAm k1 -u u1 | |
1022 | $ hg branch -q b2 |
|
1022 | $ hg branch -q b2 | |
1023 | $ echo 2 >> f2 |
|
1023 | $ echo 2 >> f2 | |
1024 | $ hg ci -qAm k2 -u u2 |
|
1024 | $ hg ci -qAm k2 -u u2 | |
1025 |
|
1025 | |||
1026 | $ hg update -q b2 |
|
1026 | $ hg update -q b2 | |
1027 | $ echo 3 >> f2 |
|
1027 | $ echo 3 >> f2 | |
1028 | $ hg ci -qAm k2 -u u2 |
|
1028 | $ hg ci -qAm k2 -u u2 | |
1029 | $ hg update -q b1 |
|
1029 | $ hg update -q b1 | |
1030 | $ echo 4 >> f1 |
|
1030 | $ echo 4 >> f1 | |
1031 | $ hg ci -qAm k1 -u u1 |
|
1031 | $ hg ci -qAm k1 -u u1 | |
1032 | $ hg update -q b0 |
|
1032 | $ hg update -q b0 | |
1033 | $ echo 5 >> f0 |
|
1033 | $ echo 5 >> f0 | |
1034 | $ hg ci -qAm k0 -u u0 |
|
1034 | $ hg ci -qAm k0 -u u0 | |
1035 |
|
1035 | |||
1036 | summary of revisions: |
|
1036 | summary of revisions: | |
1037 |
|
1037 | |||
1038 | $ hg log -G -T '{rev} {branch} {author} {desc} {files}\n' |
|
1038 | $ hg log -G -T '{rev} {branch} {author} {desc} {files}\n' | |
1039 | @ 5 b0 u0 k0 f0 |
|
1039 | @ 5 b0 u0 k0 f0 | |
1040 | | |
|
1040 | | | |
1041 | | o 4 b1 u1 k1 f1 |
|
1041 | | o 4 b1 u1 k1 f1 | |
1042 | | | |
|
1042 | | | | |
1043 | | | o 3 b2 u2 k2 f2 |
|
1043 | | | o 3 b2 u2 k2 f2 | |
1044 | | | | |
|
1044 | | | | | |
1045 | | | o 2 b2 u2 k2 f2 |
|
1045 | | | o 2 b2 u2 k2 f2 | |
1046 | | |/ |
|
1046 | | |/ | |
1047 | | o 1 b1 u1 k1 f1 |
|
1047 | | o 1 b1 u1 k1 f1 | |
1048 | |/ |
|
1048 | |/ | |
1049 | o 0 b0 u0 k0 f0 |
|
1049 | o 0 b0 u0 k0 f0 | |
1050 |
|
1050 | |||
1051 |
|
1051 | |||
1052 | log -b BRANCH in ascending order: |
|
1052 | log -b BRANCH in ascending order: | |
1053 |
|
1053 | |||
1054 | $ hg log -r0:tip -T '{rev} {branch}\n' -b b0 -b b1 |
|
1054 | $ hg log -r0:tip -T '{rev} {branch}\n' -b b0 -b b1 | |
1055 | 0 b0 |
|
1055 | 0 b0 | |
1056 | 1 b1 |
|
1056 | 1 b1 | |
1057 | 4 b1 |
|
1057 | 4 b1 | |
1058 | 5 b0 |
|
1058 | 5 b0 | |
1059 | $ hg log -r0:tip -T '{rev} {branch}\n' -b b1 -b b0 |
|
1059 | $ hg log -r0:tip -T '{rev} {branch}\n' -b b1 -b b0 | |
1060 | 0 b0 |
|
1060 | 0 b0 | |
1061 | 1 b1 |
|
1061 | 1 b1 | |
1062 | 4 b1 |
|
1062 | 4 b1 | |
1063 | 5 b0 |
|
1063 | 5 b0 | |
1064 |
|
1064 | |||
1065 | log --only-branch BRANCH in descending order: |
|
1065 | log --only-branch BRANCH in descending order: | |
1066 |
|
1066 | |||
1067 | $ hg log -rtip:0 -T '{rev} {branch}\n' --only-branch b1 --only-branch b2 |
|
1067 | $ hg log -rtip:0 -T '{rev} {branch}\n' --only-branch b1 --only-branch b2 | |
1068 | 4 b1 |
|
1068 | 4 b1 | |
1069 | 3 b2 |
|
1069 | 3 b2 | |
1070 | 2 b2 |
|
1070 | 2 b2 | |
1071 | 1 b1 |
|
1071 | 1 b1 | |
1072 | $ hg log -rtip:0 -T '{rev} {branch}\n' --only-branch b2 --only-branch b1 |
|
1072 | $ hg log -rtip:0 -T '{rev} {branch}\n' --only-branch b2 --only-branch b1 | |
1073 | 4 b1 |
|
1073 | 4 b1 | |
1074 | 3 b2 |
|
1074 | 3 b2 | |
1075 | 2 b2 |
|
1075 | 2 b2 | |
1076 | 1 b1 |
|
1076 | 1 b1 | |
1077 |
|
1077 | |||
1078 | log -u USER in ascending order, against compound set: |
|
1078 | log -u USER in ascending order, against compound set: | |
1079 |
|
1079 | |||
1080 | $ hg log -r'::head()' -T '{rev} {author}\n' -u u0 -u u2 |
|
1080 | $ hg log -r'::head()' -T '{rev} {author}\n' -u u0 -u u2 | |
1081 | 0 u0 |
|
1081 | 0 u0 | |
1082 | 2 u2 |
|
1082 | 2 u2 | |
1083 | 3 u2 |
|
1083 | 3 u2 | |
1084 | 5 u0 |
|
1084 | 5 u0 | |
1085 | $ hg log -r'::head()' -T '{rev} {author}\n' -u u2 -u u0 |
|
1085 | $ hg log -r'::head()' -T '{rev} {author}\n' -u u2 -u u0 | |
1086 | 0 u0 |
|
1086 | 0 u0 | |
1087 | 2 u2 |
|
1087 | 2 u2 | |
1088 | 3 u2 |
|
1088 | 3 u2 | |
1089 | 5 u0 |
|
1089 | 5 u0 | |
1090 |
|
1090 | |||
1091 | log -k TEXT in descending order, against compound set: |
|
1091 | log -k TEXT in descending order, against compound set: | |
1092 |
|
1092 | |||
1093 | $ hg log -r'5 + reverse(::3)' -T '{rev} {desc}\n' -k k0 -k k1 -k k2 |
|
1093 | $ hg log -r'5 + reverse(::3)' -T '{rev} {desc}\n' -k k0 -k k1 -k k2 | |
1094 | 5 k0 |
|
1094 | 5 k0 | |
1095 | 3 k2 |
|
1095 | 3 k2 | |
1096 | 2 k2 |
|
1096 | 2 k2 | |
1097 | 1 k1 |
|
1097 | 1 k1 | |
1098 | 0 k0 |
|
1098 | 0 k0 | |
1099 | $ hg log -r'5 + reverse(::3)' -T '{rev} {desc}\n' -k k2 -k k1 -k k0 |
|
1099 | $ hg log -r'5 + reverse(::3)' -T '{rev} {desc}\n' -k k2 -k k1 -k k0 | |
1100 | 5 k0 |
|
1100 | 5 k0 | |
1101 | 3 k2 |
|
1101 | 3 k2 | |
1102 | 2 k2 |
|
1102 | 2 k2 | |
1103 | 1 k1 |
|
1103 | 1 k1 | |
1104 | 0 k0 |
|
1104 | 0 k0 | |
1105 |
|
1105 | |||
1106 | log FILE in ascending order, against dagrange: |
|
1106 | log FILE in ascending order, against dagrange: | |
1107 |
|
1107 | |||
1108 | $ hg log -r1:: -T '{rev} {files}\n' f1 f2 |
|
1108 | $ hg log -r1:: -T '{rev} {files}\n' f1 f2 | |
1109 | 1 f1 |
|
1109 | 1 f1 | |
1110 | 2 f2 |
|
1110 | 2 f2 | |
1111 | 3 f2 |
|
1111 | 3 f2 | |
1112 | 4 f1 |
|
1112 | 4 f1 | |
1113 | $ hg log -r1:: -T '{rev} {files}\n' f2 f1 |
|
1113 | $ hg log -r1:: -T '{rev} {files}\n' f2 f1 | |
1114 | 1 f1 |
|
1114 | 1 f1 | |
1115 | 2 f2 |
|
1115 | 2 f2 | |
1116 | 3 f2 |
|
1116 | 3 f2 | |
1117 | 4 f1 |
|
1117 | 4 f1 | |
1118 |
|
1118 | |||
1119 | $ cd .. |
|
1119 | $ cd .. | |
1120 |
|
1120 | |||
1121 | User |
|
1121 | User | |
1122 |
|
1122 | |||
1123 | $ hg init usertest |
|
1123 | $ hg init usertest | |
1124 | $ cd usertest |
|
1124 | $ cd usertest | |
1125 |
|
1125 | |||
1126 | $ echo a > a |
|
1126 | $ echo a > a | |
1127 | $ hg ci -A -m "a" -u "User One <user1@example.org>" |
|
1127 | $ hg ci -A -m "a" -u "User One <user1@example.org>" | |
1128 | adding a |
|
1128 | adding a | |
1129 | $ echo b > b |
|
1129 | $ echo b > b | |
1130 | $ hg ci -A -m "b" -u "User Two <user2@example.org>" |
|
1130 | $ hg ci -A -m "b" -u "User Two <user2@example.org>" | |
1131 | adding b |
|
1131 | adding b | |
1132 |
|
1132 | |||
1133 | $ hg log -u "User One <user1@example.org>" |
|
1133 | $ hg log -u "User One <user1@example.org>" | |
1134 | changeset: 0:29a4c94f1924 |
|
1134 | changeset: 0:29a4c94f1924 | |
1135 | user: User One <user1@example.org> |
|
1135 | user: User One <user1@example.org> | |
1136 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1136 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1137 | summary: a |
|
1137 | summary: a | |
1138 |
|
1138 | |||
1139 | $ hg log -u "user1" -u "user2" |
|
1139 | $ hg log -u "user1" -u "user2" | |
1140 | changeset: 1:e834b5e69c0e |
|
1140 | changeset: 1:e834b5e69c0e | |
1141 | tag: tip |
|
1141 | tag: tip | |
1142 | user: User Two <user2@example.org> |
|
1142 | user: User Two <user2@example.org> | |
1143 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1143 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1144 | summary: b |
|
1144 | summary: b | |
1145 |
|
1145 | |||
1146 | changeset: 0:29a4c94f1924 |
|
1146 | changeset: 0:29a4c94f1924 | |
1147 | user: User One <user1@example.org> |
|
1147 | user: User One <user1@example.org> | |
1148 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1148 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1149 | summary: a |
|
1149 | summary: a | |
1150 |
|
1150 | |||
1151 | $ hg log -u "user3" |
|
1151 | $ hg log -u "user3" | |
1152 |
|
1152 | |||
1153 | $ cd .. |
|
1153 | $ cd .. | |
1154 |
|
1154 | |||
1155 | $ hg init branches |
|
1155 | $ hg init branches | |
1156 | $ cd branches |
|
1156 | $ cd branches | |
1157 |
|
1157 | |||
1158 | $ echo a > a |
|
1158 | $ echo a > a | |
1159 | $ hg ci -A -m "commit on default" |
|
1159 | $ hg ci -A -m "commit on default" | |
1160 | adding a |
|
1160 | adding a | |
1161 | $ hg branch test |
|
1161 | $ hg branch test | |
1162 | marked working directory as branch test |
|
1162 | marked working directory as branch test | |
1163 | (branches are permanent and global, did you want a bookmark?) |
|
1163 | (branches are permanent and global, did you want a bookmark?) | |
1164 | $ echo b > b |
|
1164 | $ echo b > b | |
1165 | $ hg ci -A -m "commit on test" |
|
1165 | $ hg ci -A -m "commit on test" | |
1166 | adding b |
|
1166 | adding b | |
1167 |
|
1167 | |||
1168 | $ hg up default |
|
1168 | $ hg up default | |
1169 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
1169 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
1170 | $ echo c > c |
|
1170 | $ echo c > c | |
1171 | $ hg ci -A -m "commit on default" |
|
1171 | $ hg ci -A -m "commit on default" | |
1172 | adding c |
|
1172 | adding c | |
1173 | $ hg up test |
|
1173 | $ hg up test | |
1174 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
1174 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
1175 | $ echo c > c |
|
1175 | $ echo c > c | |
1176 | $ hg ci -A -m "commit on test" |
|
1176 | $ hg ci -A -m "commit on test" | |
1177 | adding c |
|
1177 | adding c | |
1178 |
|
1178 | |||
1179 |
|
1179 | |||
1180 | log -b default |
|
1180 | log -b default | |
1181 |
|
1181 | |||
1182 | $ hg log -b default |
|
1182 | $ hg log -b default | |
1183 | changeset: 2:c3a4f03cc9a7 |
|
1183 | changeset: 2:c3a4f03cc9a7 | |
1184 | parent: 0:24427303d56f |
|
1184 | parent: 0:24427303d56f | |
1185 | user: test |
|
1185 | user: test | |
1186 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1186 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1187 | summary: commit on default |
|
1187 | summary: commit on default | |
1188 |
|
1188 | |||
1189 | changeset: 0:24427303d56f |
|
1189 | changeset: 0:24427303d56f | |
1190 | user: test |
|
1190 | user: test | |
1191 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1191 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1192 | summary: commit on default |
|
1192 | summary: commit on default | |
1193 |
|
1193 | |||
1194 |
|
1194 | |||
1195 |
|
1195 | |||
1196 | log -b test |
|
1196 | log -b test | |
1197 |
|
1197 | |||
1198 | $ hg log -b test |
|
1198 | $ hg log -b test | |
1199 | changeset: 3:f5d8de11c2e2 |
|
1199 | changeset: 3:f5d8de11c2e2 | |
1200 | branch: test |
|
1200 | branch: test | |
1201 | tag: tip |
|
1201 | tag: tip | |
1202 | parent: 1:d32277701ccb |
|
1202 | parent: 1:d32277701ccb | |
1203 | user: test |
|
1203 | user: test | |
1204 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1204 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1205 | summary: commit on test |
|
1205 | summary: commit on test | |
1206 |
|
1206 | |||
1207 | changeset: 1:d32277701ccb |
|
1207 | changeset: 1:d32277701ccb | |
1208 | branch: test |
|
1208 | branch: test | |
1209 | user: test |
|
1209 | user: test | |
1210 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1210 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1211 | summary: commit on test |
|
1211 | summary: commit on test | |
1212 |
|
1212 | |||
1213 |
|
1213 | |||
1214 |
|
1214 | |||
1215 | log -b dummy |
|
1215 | log -b dummy | |
1216 |
|
1216 | |||
1217 | $ hg log -b dummy |
|
1217 | $ hg log -b dummy | |
1218 | abort: unknown revision 'dummy'! |
|
1218 | abort: unknown revision 'dummy'! | |
1219 | [255] |
|
1219 | [255] | |
1220 |
|
1220 | |||
1221 |
|
1221 | |||
1222 | log -b . |
|
1222 | log -b . | |
1223 |
|
1223 | |||
1224 | $ hg log -b . |
|
1224 | $ hg log -b . | |
1225 | changeset: 3:f5d8de11c2e2 |
|
1225 | changeset: 3:f5d8de11c2e2 | |
1226 | branch: test |
|
1226 | branch: test | |
1227 | tag: tip |
|
1227 | tag: tip | |
1228 | parent: 1:d32277701ccb |
|
1228 | parent: 1:d32277701ccb | |
1229 | user: test |
|
1229 | user: test | |
1230 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1230 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1231 | summary: commit on test |
|
1231 | summary: commit on test | |
1232 |
|
1232 | |||
1233 | changeset: 1:d32277701ccb |
|
1233 | changeset: 1:d32277701ccb | |
1234 | branch: test |
|
1234 | branch: test | |
1235 | user: test |
|
1235 | user: test | |
1236 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1236 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1237 | summary: commit on test |
|
1237 | summary: commit on test | |
1238 |
|
1238 | |||
1239 |
|
1239 | |||
1240 |
|
1240 | |||
1241 | log -b default -b test |
|
1241 | log -b default -b test | |
1242 |
|
1242 | |||
1243 | $ hg log -b default -b test |
|
1243 | $ hg log -b default -b test | |
1244 | changeset: 3:f5d8de11c2e2 |
|
1244 | changeset: 3:f5d8de11c2e2 | |
1245 | branch: test |
|
1245 | branch: test | |
1246 | tag: tip |
|
1246 | tag: tip | |
1247 | parent: 1:d32277701ccb |
|
1247 | parent: 1:d32277701ccb | |
1248 | user: test |
|
1248 | user: test | |
1249 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1249 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1250 | summary: commit on test |
|
1250 | summary: commit on test | |
1251 |
|
1251 | |||
1252 | changeset: 2:c3a4f03cc9a7 |
|
1252 | changeset: 2:c3a4f03cc9a7 | |
1253 | parent: 0:24427303d56f |
|
1253 | parent: 0:24427303d56f | |
1254 | user: test |
|
1254 | user: test | |
1255 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1255 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1256 | summary: commit on default |
|
1256 | summary: commit on default | |
1257 |
|
1257 | |||
1258 | changeset: 1:d32277701ccb |
|
1258 | changeset: 1:d32277701ccb | |
1259 | branch: test |
|
1259 | branch: test | |
1260 | user: test |
|
1260 | user: test | |
1261 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1261 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1262 | summary: commit on test |
|
1262 | summary: commit on test | |
1263 |
|
1263 | |||
1264 | changeset: 0:24427303d56f |
|
1264 | changeset: 0:24427303d56f | |
1265 | user: test |
|
1265 | user: test | |
1266 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1266 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1267 | summary: commit on default |
|
1267 | summary: commit on default | |
1268 |
|
1268 | |||
1269 |
|
1269 | |||
1270 |
|
1270 | |||
1271 | log -b default -b . |
|
1271 | log -b default -b . | |
1272 |
|
1272 | |||
1273 | $ hg log -b default -b . |
|
1273 | $ hg log -b default -b . | |
1274 | changeset: 3:f5d8de11c2e2 |
|
1274 | changeset: 3:f5d8de11c2e2 | |
1275 | branch: test |
|
1275 | branch: test | |
1276 | tag: tip |
|
1276 | tag: tip | |
1277 | parent: 1:d32277701ccb |
|
1277 | parent: 1:d32277701ccb | |
1278 | user: test |
|
1278 | user: test | |
1279 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1279 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1280 | summary: commit on test |
|
1280 | summary: commit on test | |
1281 |
|
1281 | |||
1282 | changeset: 2:c3a4f03cc9a7 |
|
1282 | changeset: 2:c3a4f03cc9a7 | |
1283 | parent: 0:24427303d56f |
|
1283 | parent: 0:24427303d56f | |
1284 | user: test |
|
1284 | user: test | |
1285 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1285 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1286 | summary: commit on default |
|
1286 | summary: commit on default | |
1287 |
|
1287 | |||
1288 | changeset: 1:d32277701ccb |
|
1288 | changeset: 1:d32277701ccb | |
1289 | branch: test |
|
1289 | branch: test | |
1290 | user: test |
|
1290 | user: test | |
1291 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1291 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1292 | summary: commit on test |
|
1292 | summary: commit on test | |
1293 |
|
1293 | |||
1294 | changeset: 0:24427303d56f |
|
1294 | changeset: 0:24427303d56f | |
1295 | user: test |
|
1295 | user: test | |
1296 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1296 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1297 | summary: commit on default |
|
1297 | summary: commit on default | |
1298 |
|
1298 | |||
1299 |
|
1299 | |||
1300 |
|
1300 | |||
1301 | log -b . -b test |
|
1301 | log -b . -b test | |
1302 |
|
1302 | |||
1303 | $ hg log -b . -b test |
|
1303 | $ hg log -b . -b test | |
1304 | changeset: 3:f5d8de11c2e2 |
|
1304 | changeset: 3:f5d8de11c2e2 | |
1305 | branch: test |
|
1305 | branch: test | |
1306 | tag: tip |
|
1306 | tag: tip | |
1307 | parent: 1:d32277701ccb |
|
1307 | parent: 1:d32277701ccb | |
1308 | user: test |
|
1308 | user: test | |
1309 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1309 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1310 | summary: commit on test |
|
1310 | summary: commit on test | |
1311 |
|
1311 | |||
1312 | changeset: 1:d32277701ccb |
|
1312 | changeset: 1:d32277701ccb | |
1313 | branch: test |
|
1313 | branch: test | |
1314 | user: test |
|
1314 | user: test | |
1315 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1315 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1316 | summary: commit on test |
|
1316 | summary: commit on test | |
1317 |
|
1317 | |||
1318 |
|
1318 | |||
1319 |
|
1319 | |||
1320 | log -b 2 |
|
1320 | log -b 2 | |
1321 |
|
1321 | |||
1322 | $ hg log -b 2 |
|
1322 | $ hg log -b 2 | |
1323 | changeset: 2:c3a4f03cc9a7 |
|
1323 | changeset: 2:c3a4f03cc9a7 | |
1324 | parent: 0:24427303d56f |
|
1324 | parent: 0:24427303d56f | |
1325 | user: test |
|
1325 | user: test | |
1326 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1326 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1327 | summary: commit on default |
|
1327 | summary: commit on default | |
1328 |
|
1328 | |||
1329 | changeset: 0:24427303d56f |
|
1329 | changeset: 0:24427303d56f | |
1330 | user: test |
|
1330 | user: test | |
1331 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1331 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1332 | summary: commit on default |
|
1332 | summary: commit on default | |
1333 |
|
1333 | |||
1334 | #if gettext |
|
1334 | #if gettext | |
1335 |
|
1335 | |||
1336 | Test that all log names are translated (e.g. branches, bookmarks, tags): |
|
1336 | Test that all log names are translated (e.g. branches, bookmarks, tags): | |
1337 |
|
1337 | |||
1338 | $ hg bookmark babar -r tip |
|
1338 | $ hg bookmark babar -r tip | |
1339 |
|
1339 | |||
1340 | $ HGENCODING=UTF-8 LANGUAGE=de hg log -r tip |
|
1340 | $ HGENCODING=UTF-8 LANGUAGE=de hg log -r tip | |
1341 | \xc3\x84nderung: 3:f5d8de11c2e2 (esc) |
|
1341 | \xc3\x84nderung: 3:f5d8de11c2e2 (esc) | |
1342 | Zweig: test |
|
1342 | Zweig: test | |
1343 | Lesezeichen: babar |
|
1343 | Lesezeichen: babar | |
1344 | Marke: tip |
|
1344 | Marke: tip | |
1345 | Vorg\xc3\xa4nger: 1:d32277701ccb (esc) |
|
1345 | Vorg\xc3\xa4nger: 1:d32277701ccb (esc) | |
1346 | Nutzer: test |
|
1346 | Nutzer: test | |
1347 | Datum: Thu Jan 01 00:00:00 1970 +0000 |
|
1347 | Datum: Thu Jan 01 00:00:00 1970 +0000 | |
1348 | Zusammenfassung: commit on test |
|
1348 | Zusammenfassung: commit on test | |
1349 |
|
1349 | |||
1350 | $ hg bookmark -d babar |
|
1350 | $ hg bookmark -d babar | |
1351 |
|
1351 | |||
1352 | #endif |
|
1352 | #endif | |
1353 |
|
1353 | |||
1354 | log -p --cwd dir (in subdir) |
|
1354 | log -p --cwd dir (in subdir) | |
1355 |
|
1355 | |||
1356 | $ mkdir dir |
|
1356 | $ mkdir dir | |
1357 | $ hg log -p --cwd dir |
|
1357 | $ hg log -p --cwd dir | |
1358 | changeset: 3:f5d8de11c2e2 |
|
1358 | changeset: 3:f5d8de11c2e2 | |
1359 | branch: test |
|
1359 | branch: test | |
1360 | tag: tip |
|
1360 | tag: tip | |
1361 | parent: 1:d32277701ccb |
|
1361 | parent: 1:d32277701ccb | |
1362 | user: test |
|
1362 | user: test | |
1363 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1363 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1364 | summary: commit on test |
|
1364 | summary: commit on test | |
1365 |
|
1365 | |||
1366 | diff -r d32277701ccb -r f5d8de11c2e2 c |
|
1366 | diff -r d32277701ccb -r f5d8de11c2e2 c | |
1367 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
1367 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
1368 | +++ b/c Thu Jan 01 00:00:00 1970 +0000 |
|
1368 | +++ b/c Thu Jan 01 00:00:00 1970 +0000 | |
1369 | @@ -0,0 +1,1 @@ |
|
1369 | @@ -0,0 +1,1 @@ | |
1370 | +c |
|
1370 | +c | |
1371 |
|
1371 | |||
1372 | changeset: 2:c3a4f03cc9a7 |
|
1372 | changeset: 2:c3a4f03cc9a7 | |
1373 | parent: 0:24427303d56f |
|
1373 | parent: 0:24427303d56f | |
1374 | user: test |
|
1374 | user: test | |
1375 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1375 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1376 | summary: commit on default |
|
1376 | summary: commit on default | |
1377 |
|
1377 | |||
1378 | diff -r 24427303d56f -r c3a4f03cc9a7 c |
|
1378 | diff -r 24427303d56f -r c3a4f03cc9a7 c | |
1379 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
1379 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
1380 | +++ b/c Thu Jan 01 00:00:00 1970 +0000 |
|
1380 | +++ b/c Thu Jan 01 00:00:00 1970 +0000 | |
1381 | @@ -0,0 +1,1 @@ |
|
1381 | @@ -0,0 +1,1 @@ | |
1382 | +c |
|
1382 | +c | |
1383 |
|
1383 | |||
1384 | changeset: 1:d32277701ccb |
|
1384 | changeset: 1:d32277701ccb | |
1385 | branch: test |
|
1385 | branch: test | |
1386 | user: test |
|
1386 | user: test | |
1387 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1387 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1388 | summary: commit on test |
|
1388 | summary: commit on test | |
1389 |
|
1389 | |||
1390 | diff -r 24427303d56f -r d32277701ccb b |
|
1390 | diff -r 24427303d56f -r d32277701ccb b | |
1391 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
1391 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
1392 | +++ b/b Thu Jan 01 00:00:00 1970 +0000 |
|
1392 | +++ b/b Thu Jan 01 00:00:00 1970 +0000 | |
1393 | @@ -0,0 +1,1 @@ |
|
1393 | @@ -0,0 +1,1 @@ | |
1394 | +b |
|
1394 | +b | |
1395 |
|
1395 | |||
1396 | changeset: 0:24427303d56f |
|
1396 | changeset: 0:24427303d56f | |
1397 | user: test |
|
1397 | user: test | |
1398 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1398 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1399 | summary: commit on default |
|
1399 | summary: commit on default | |
1400 |
|
1400 | |||
1401 | diff -r 000000000000 -r 24427303d56f a |
|
1401 | diff -r 000000000000 -r 24427303d56f a | |
1402 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
1402 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
1403 | +++ b/a Thu Jan 01 00:00:00 1970 +0000 |
|
1403 | +++ b/a Thu Jan 01 00:00:00 1970 +0000 | |
1404 | @@ -0,0 +1,1 @@ |
|
1404 | @@ -0,0 +1,1 @@ | |
1405 | +a |
|
1405 | +a | |
1406 |
|
1406 | |||
1407 |
|
1407 | |||
1408 |
|
1408 | |||
1409 | log -p -R repo |
|
1409 | log -p -R repo | |
1410 |
|
1410 | |||
1411 | $ cd dir |
|
1411 | $ cd dir | |
1412 | $ hg log -p -R .. ../a |
|
1412 | $ hg log -p -R .. ../a | |
1413 | changeset: 0:24427303d56f |
|
1413 | changeset: 0:24427303d56f | |
1414 | user: test |
|
1414 | user: test | |
1415 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1415 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1416 | summary: commit on default |
|
1416 | summary: commit on default | |
1417 |
|
1417 | |||
1418 | diff -r 000000000000 -r 24427303d56f a |
|
1418 | diff -r 000000000000 -r 24427303d56f a | |
1419 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
1419 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
1420 | +++ b/a Thu Jan 01 00:00:00 1970 +0000 |
|
1420 | +++ b/a Thu Jan 01 00:00:00 1970 +0000 | |
1421 | @@ -0,0 +1,1 @@ |
|
1421 | @@ -0,0 +1,1 @@ | |
1422 | +a |
|
1422 | +a | |
1423 |
|
1423 | |||
1424 |
|
1424 | |||
1425 | $ cd ../.. |
|
1425 | $ cd ../.. | |
1426 |
|
1426 | |||
1427 | $ hg init follow2 |
|
1427 | $ hg init follow2 | |
1428 | $ cd follow2 |
|
1428 | $ cd follow2 | |
1429 |
|
1429 | |||
1430 | # Build the following history: |
|
1430 | # Build the following history: | |
1431 | # tip - o - x - o - x - x |
|
1431 | # tip - o - x - o - x - x | |
1432 | # \ / |
|
1432 | # \ / | |
1433 | # o - o - o - x |
|
1433 | # o - o - o - x | |
1434 | # \ / |
|
1434 | # \ / | |
1435 | # o |
|
1435 | # o | |
1436 | # |
|
1436 | # | |
1437 | # Where "o" is a revision containing "foo" and |
|
1437 | # Where "o" is a revision containing "foo" and | |
1438 | # "x" is a revision without "foo" |
|
1438 | # "x" is a revision without "foo" | |
1439 |
|
1439 | |||
1440 | $ touch init |
|
1440 | $ touch init | |
1441 | $ hg ci -A -m "init, unrelated" |
|
1441 | $ hg ci -A -m "init, unrelated" | |
1442 | adding init |
|
1442 | adding init | |
1443 | $ echo 'foo' > init |
|
1443 | $ echo 'foo' > init | |
1444 | $ hg ci -m "change, unrelated" |
|
1444 | $ hg ci -m "change, unrelated" | |
1445 | $ echo 'foo' > foo |
|
1445 | $ echo 'foo' > foo | |
1446 | $ hg ci -A -m "add unrelated old foo" |
|
1446 | $ hg ci -A -m "add unrelated old foo" | |
1447 | adding foo |
|
1447 | adding foo | |
1448 | $ hg rm foo |
|
1448 | $ hg rm foo | |
1449 | $ hg ci -m "delete foo, unrelated" |
|
1449 | $ hg ci -m "delete foo, unrelated" | |
1450 | $ echo 'related' > foo |
|
1450 | $ echo 'related' > foo | |
1451 | $ hg ci -A -m "add foo, related" |
|
1451 | $ hg ci -A -m "add foo, related" | |
1452 | adding foo |
|
1452 | adding foo | |
1453 |
|
1453 | |||
1454 | $ hg up 0 |
|
1454 | $ hg up 0 | |
1455 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
1455 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
1456 | $ touch branch |
|
1456 | $ touch branch | |
1457 | $ hg ci -A -m "first branch, unrelated" |
|
1457 | $ hg ci -A -m "first branch, unrelated" | |
1458 | adding branch |
|
1458 | adding branch | |
1459 | created new head |
|
1459 | created new head | |
1460 | $ touch foo |
|
1460 | $ touch foo | |
1461 | $ hg ci -A -m "create foo, related" |
|
1461 | $ hg ci -A -m "create foo, related" | |
1462 | adding foo |
|
1462 | adding foo | |
1463 | $ echo 'change' > foo |
|
1463 | $ echo 'change' > foo | |
1464 | $ hg ci -m "change foo, related" |
|
1464 | $ hg ci -m "change foo, related" | |
1465 |
|
1465 | |||
1466 | $ hg up 6 |
|
1466 | $ hg up 6 | |
1467 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
1467 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
1468 | $ echo 'change foo in branch' > foo |
|
1468 | $ echo 'change foo in branch' > foo | |
1469 | $ hg ci -m "change foo in branch, related" |
|
1469 | $ hg ci -m "change foo in branch, related" | |
1470 | created new head |
|
1470 | created new head | |
1471 | $ hg merge 7 |
|
1471 | $ hg merge 7 | |
1472 | merging foo |
|
1472 | merging foo | |
1473 | warning: conflicts while merging foo! (edit, then use 'hg resolve --mark') |
|
1473 | warning: conflicts while merging foo! (edit, then use 'hg resolve --mark') | |
1474 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
1474 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
1475 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon |
|
1475 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon | |
1476 | [1] |
|
1476 | [1] | |
1477 | $ echo 'merge 1' > foo |
|
1477 | $ echo 'merge 1' > foo | |
1478 | $ hg resolve -m foo |
|
1478 | $ hg resolve -m foo | |
1479 | (no more unresolved files) |
|
1479 | (no more unresolved files) | |
1480 | $ hg ci -m "First merge, related" |
|
1480 | $ hg ci -m "First merge, related" | |
1481 |
|
1481 | |||
1482 | $ hg merge 4 |
|
1482 | $ hg merge 4 | |
1483 | merging foo |
|
1483 | merging foo | |
1484 | warning: conflicts while merging foo! (edit, then use 'hg resolve --mark') |
|
1484 | warning: conflicts while merging foo! (edit, then use 'hg resolve --mark') | |
1485 | 1 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
1485 | 1 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
1486 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon |
|
1486 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon | |
1487 | [1] |
|
1487 | [1] | |
1488 | $ echo 'merge 2' > foo |
|
1488 | $ echo 'merge 2' > foo | |
1489 | $ hg resolve -m foo |
|
1489 | $ hg resolve -m foo | |
1490 | (no more unresolved files) |
|
1490 | (no more unresolved files) | |
1491 | $ hg ci -m "Last merge, related" |
|
1491 | $ hg ci -m "Last merge, related" | |
1492 |
|
1492 | |||
1493 | $ hg log --graph |
|
1493 | $ hg log --graph | |
1494 | @ changeset: 10:4dae8563d2c5 |
|
1494 | @ changeset: 10:4dae8563d2c5 | |
1495 | |\ tag: tip |
|
1495 | |\ tag: tip | |
1496 | | | parent: 9:7b35701b003e |
|
1496 | | | parent: 9:7b35701b003e | |
1497 | | | parent: 4:88176d361b69 |
|
1497 | | | parent: 4:88176d361b69 | |
1498 | | | user: test |
|
1498 | | | user: test | |
1499 | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1499 | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
1500 | | | summary: Last merge, related |
|
1500 | | | summary: Last merge, related | |
1501 | | | |
|
1501 | | | | |
1502 | | o changeset: 9:7b35701b003e |
|
1502 | | o changeset: 9:7b35701b003e | |
1503 | | |\ parent: 8:e5416ad8a855 |
|
1503 | | |\ parent: 8:e5416ad8a855 | |
1504 | | | | parent: 7:87fe3144dcfa |
|
1504 | | | | parent: 7:87fe3144dcfa | |
1505 | | | | user: test |
|
1505 | | | | user: test | |
1506 | | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1506 | | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
1507 | | | | summary: First merge, related |
|
1507 | | | | summary: First merge, related | |
1508 | | | | |
|
1508 | | | | | |
1509 | | | o changeset: 8:e5416ad8a855 |
|
1509 | | | o changeset: 8:e5416ad8a855 | |
1510 | | | | parent: 6:dc6c325fe5ee |
|
1510 | | | | parent: 6:dc6c325fe5ee | |
1511 | | | | user: test |
|
1511 | | | | user: test | |
1512 | | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1512 | | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
1513 | | | | summary: change foo in branch, related |
|
1513 | | | | summary: change foo in branch, related | |
1514 | | | | |
|
1514 | | | | | |
1515 | | o | changeset: 7:87fe3144dcfa |
|
1515 | | o | changeset: 7:87fe3144dcfa | |
1516 | | |/ user: test |
|
1516 | | |/ user: test | |
1517 | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1517 | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
1518 | | | summary: change foo, related |
|
1518 | | | summary: change foo, related | |
1519 | | | |
|
1519 | | | | |
1520 | | o changeset: 6:dc6c325fe5ee |
|
1520 | | o changeset: 6:dc6c325fe5ee | |
1521 | | | user: test |
|
1521 | | | user: test | |
1522 | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1522 | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
1523 | | | summary: create foo, related |
|
1523 | | | summary: create foo, related | |
1524 | | | |
|
1524 | | | | |
1525 | | o changeset: 5:73db34516eb9 |
|
1525 | | o changeset: 5:73db34516eb9 | |
1526 | | | parent: 0:e87515fd044a |
|
1526 | | | parent: 0:e87515fd044a | |
1527 | | | user: test |
|
1527 | | | user: test | |
1528 | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1528 | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
1529 | | | summary: first branch, unrelated |
|
1529 | | | summary: first branch, unrelated | |
1530 | | | |
|
1530 | | | | |
1531 | o | changeset: 4:88176d361b69 |
|
1531 | o | changeset: 4:88176d361b69 | |
1532 | | | user: test |
|
1532 | | | user: test | |
1533 | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1533 | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
1534 | | | summary: add foo, related |
|
1534 | | | summary: add foo, related | |
1535 | | | |
|
1535 | | | | |
1536 | o | changeset: 3:dd78ae4afb56 |
|
1536 | o | changeset: 3:dd78ae4afb56 | |
1537 | | | user: test |
|
1537 | | | user: test | |
1538 | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1538 | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
1539 | | | summary: delete foo, unrelated |
|
1539 | | | summary: delete foo, unrelated | |
1540 | | | |
|
1540 | | | | |
1541 | o | changeset: 2:c4c64aedf0f7 |
|
1541 | o | changeset: 2:c4c64aedf0f7 | |
1542 | | | user: test |
|
1542 | | | user: test | |
1543 | | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1543 | | | date: Thu Jan 01 00:00:00 1970 +0000 | |
1544 | | | summary: add unrelated old foo |
|
1544 | | | summary: add unrelated old foo | |
1545 | | | |
|
1545 | | | | |
1546 | o | changeset: 1:e5faa7440653 |
|
1546 | o | changeset: 1:e5faa7440653 | |
1547 | |/ user: test |
|
1547 | |/ user: test | |
1548 | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1548 | | date: Thu Jan 01 00:00:00 1970 +0000 | |
1549 | | summary: change, unrelated |
|
1549 | | summary: change, unrelated | |
1550 | | |
|
1550 | | | |
1551 | o changeset: 0:e87515fd044a |
|
1551 | o changeset: 0:e87515fd044a | |
1552 | user: test |
|
1552 | user: test | |
1553 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1553 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1554 | summary: init, unrelated |
|
1554 | summary: init, unrelated | |
1555 |
|
1555 | |||
1556 |
|
1556 | |||
1557 | $ hg --traceback log -f foo |
|
1557 | $ hg --traceback log -f foo | |
1558 | changeset: 10:4dae8563d2c5 |
|
1558 | changeset: 10:4dae8563d2c5 | |
1559 | tag: tip |
|
1559 | tag: tip | |
1560 | parent: 9:7b35701b003e |
|
1560 | parent: 9:7b35701b003e | |
1561 | parent: 4:88176d361b69 |
|
1561 | parent: 4:88176d361b69 | |
1562 | user: test |
|
1562 | user: test | |
1563 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1563 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1564 | summary: Last merge, related |
|
1564 | summary: Last merge, related | |
1565 |
|
1565 | |||
1566 | changeset: 9:7b35701b003e |
|
1566 | changeset: 9:7b35701b003e | |
1567 | parent: 8:e5416ad8a855 |
|
1567 | parent: 8:e5416ad8a855 | |
1568 | parent: 7:87fe3144dcfa |
|
1568 | parent: 7:87fe3144dcfa | |
1569 | user: test |
|
1569 | user: test | |
1570 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1570 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1571 | summary: First merge, related |
|
1571 | summary: First merge, related | |
1572 |
|
1572 | |||
1573 | changeset: 8:e5416ad8a855 |
|
1573 | changeset: 8:e5416ad8a855 | |
1574 | parent: 6:dc6c325fe5ee |
|
1574 | parent: 6:dc6c325fe5ee | |
1575 | user: test |
|
1575 | user: test | |
1576 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1576 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1577 | summary: change foo in branch, related |
|
1577 | summary: change foo in branch, related | |
1578 |
|
1578 | |||
1579 | changeset: 7:87fe3144dcfa |
|
1579 | changeset: 7:87fe3144dcfa | |
1580 | user: test |
|
1580 | user: test | |
1581 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1581 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1582 | summary: change foo, related |
|
1582 | summary: change foo, related | |
1583 |
|
1583 | |||
1584 | changeset: 6:dc6c325fe5ee |
|
1584 | changeset: 6:dc6c325fe5ee | |
1585 | user: test |
|
1585 | user: test | |
1586 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1586 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1587 | summary: create foo, related |
|
1587 | summary: create foo, related | |
1588 |
|
1588 | |||
1589 | changeset: 4:88176d361b69 |
|
1589 | changeset: 4:88176d361b69 | |
1590 | user: test |
|
1590 | user: test | |
1591 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1591 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1592 | summary: add foo, related |
|
1592 | summary: add foo, related | |
1593 |
|
1593 | |||
1594 |
|
1594 | |||
1595 | Also check when maxrev < lastrevfilelog |
|
1595 | Also check when maxrev < lastrevfilelog | |
1596 |
|
1596 | |||
1597 | $ hg --traceback log -f -r4 foo |
|
1597 | $ hg --traceback log -f -r4 foo | |
1598 | changeset: 4:88176d361b69 |
|
1598 | changeset: 4:88176d361b69 | |
1599 | user: test |
|
1599 | user: test | |
1600 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1600 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1601 | summary: add foo, related |
|
1601 | summary: add foo, related | |
1602 |
|
1602 | |||
1603 | changeset: 2:c4c64aedf0f7 |
|
1603 | changeset: 2:c4c64aedf0f7 | |
1604 | user: test |
|
1604 | user: test | |
1605 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1605 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1606 | summary: add unrelated old foo |
|
1606 | summary: add unrelated old foo | |
1607 |
|
1607 | |||
1608 | $ cd .. |
|
1608 | $ cd .. | |
1609 |
|
1609 | |||
1610 | Issue2383: hg log showing _less_ differences than hg diff |
|
1610 | Issue2383: hg log showing _less_ differences than hg diff | |
1611 |
|
1611 | |||
1612 | $ hg init issue2383 |
|
1612 | $ hg init issue2383 | |
1613 | $ cd issue2383 |
|
1613 | $ cd issue2383 | |
1614 |
|
1614 | |||
1615 | Create a test repo: |
|
1615 | Create a test repo: | |
1616 |
|
1616 | |||
1617 | $ echo a > a |
|
1617 | $ echo a > a | |
1618 | $ hg ci -Am0 |
|
1618 | $ hg ci -Am0 | |
1619 | adding a |
|
1619 | adding a | |
1620 | $ echo b > b |
|
1620 | $ echo b > b | |
1621 | $ hg ci -Am1 |
|
1621 | $ hg ci -Am1 | |
1622 | adding b |
|
1622 | adding b | |
1623 | $ hg co 0 |
|
1623 | $ hg co 0 | |
1624 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
1624 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
1625 | $ echo b > a |
|
1625 | $ echo b > a | |
1626 | $ hg ci -m2 |
|
1626 | $ hg ci -m2 | |
1627 | created new head |
|
1627 | created new head | |
1628 |
|
1628 | |||
1629 | Merge: |
|
1629 | Merge: | |
1630 |
|
1630 | |||
1631 | $ hg merge |
|
1631 | $ hg merge | |
1632 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
1632 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
1633 | (branch merge, don't forget to commit) |
|
1633 | (branch merge, don't forget to commit) | |
1634 |
|
1634 | |||
1635 | Make sure there's a file listed in the merge to trigger the bug: |
|
1635 | Make sure there's a file listed in the merge to trigger the bug: | |
1636 |
|
1636 | |||
1637 | $ echo c > a |
|
1637 | $ echo c > a | |
1638 | $ hg ci -m3 |
|
1638 | $ hg ci -m3 | |
1639 |
|
1639 | |||
1640 | Two files shown here in diff: |
|
1640 | Two files shown here in diff: | |
1641 |
|
1641 | |||
1642 | $ hg diff --rev 2:3 |
|
1642 | $ hg diff --rev 2:3 | |
1643 | diff -r b09be438c43a -r 8e07aafe1edc a |
|
1643 | diff -r b09be438c43a -r 8e07aafe1edc a | |
1644 | --- a/a Thu Jan 01 00:00:00 1970 +0000 |
|
1644 | --- a/a Thu Jan 01 00:00:00 1970 +0000 | |
1645 | +++ b/a Thu Jan 01 00:00:00 1970 +0000 |
|
1645 | +++ b/a Thu Jan 01 00:00:00 1970 +0000 | |
1646 | @@ -1,1 +1,1 @@ |
|
1646 | @@ -1,1 +1,1 @@ | |
1647 | -b |
|
1647 | -b | |
1648 | +c |
|
1648 | +c | |
1649 | diff -r b09be438c43a -r 8e07aafe1edc b |
|
1649 | diff -r b09be438c43a -r 8e07aafe1edc b | |
1650 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
1650 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
1651 | +++ b/b Thu Jan 01 00:00:00 1970 +0000 |
|
1651 | +++ b/b Thu Jan 01 00:00:00 1970 +0000 | |
1652 | @@ -0,0 +1,1 @@ |
|
1652 | @@ -0,0 +1,1 @@ | |
1653 | +b |
|
1653 | +b | |
1654 |
|
1654 | |||
1655 | Diff here should be the same: |
|
1655 | Diff here should be the same: | |
1656 |
|
1656 | |||
1657 | $ hg log -vpr 3 |
|
1657 | $ hg log -vpr 3 | |
1658 | changeset: 3:8e07aafe1edc |
|
1658 | changeset: 3:8e07aafe1edc | |
1659 | tag: tip |
|
1659 | tag: tip | |
1660 | parent: 2:b09be438c43a |
|
1660 | parent: 2:b09be438c43a | |
1661 | parent: 1:925d80f479bb |
|
1661 | parent: 1:925d80f479bb | |
1662 | user: test |
|
1662 | user: test | |
1663 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1663 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1664 | files: a |
|
1664 | files: a | |
1665 | description: |
|
1665 | description: | |
1666 | 3 |
|
1666 | 3 | |
1667 |
|
1667 | |||
1668 |
|
1668 | |||
1669 | diff -r b09be438c43a -r 8e07aafe1edc a |
|
1669 | diff -r b09be438c43a -r 8e07aafe1edc a | |
1670 | --- a/a Thu Jan 01 00:00:00 1970 +0000 |
|
1670 | --- a/a Thu Jan 01 00:00:00 1970 +0000 | |
1671 | +++ b/a Thu Jan 01 00:00:00 1970 +0000 |
|
1671 | +++ b/a Thu Jan 01 00:00:00 1970 +0000 | |
1672 | @@ -1,1 +1,1 @@ |
|
1672 | @@ -1,1 +1,1 @@ | |
1673 | -b |
|
1673 | -b | |
1674 | +c |
|
1674 | +c | |
1675 | diff -r b09be438c43a -r 8e07aafe1edc b |
|
1675 | diff -r b09be438c43a -r 8e07aafe1edc b | |
1676 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
|
1676 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
1677 | +++ b/b Thu Jan 01 00:00:00 1970 +0000 |
|
1677 | +++ b/b Thu Jan 01 00:00:00 1970 +0000 | |
1678 | @@ -0,0 +1,1 @@ |
|
1678 | @@ -0,0 +1,1 @@ | |
1679 | +b |
|
1679 | +b | |
1680 |
|
1680 | |||
1681 | $ cd .. |
|
1681 | $ cd .. | |
1682 |
|
1682 | |||
1683 | 'hg log -r rev fn' when last(filelog(fn)) != rev |
|
1683 | 'hg log -r rev fn' when last(filelog(fn)) != rev | |
1684 |
|
1684 | |||
1685 | $ hg init simplelog |
|
1685 | $ hg init simplelog | |
1686 | $ cd simplelog |
|
1686 | $ cd simplelog | |
1687 | $ echo f > a |
|
1687 | $ echo f > a | |
1688 | $ hg ci -Am'a' -d '0 0' |
|
1688 | $ hg ci -Am'a' -d '0 0' | |
1689 | adding a |
|
1689 | adding a | |
1690 | $ echo f >> a |
|
1690 | $ echo f >> a | |
1691 | $ hg ci -Am'a bis' -d '1 0' |
|
1691 | $ hg ci -Am'a bis' -d '1 0' | |
1692 |
|
1692 | |||
1693 | $ hg log -r0 a |
|
1693 | $ hg log -r0 a | |
1694 | changeset: 0:9f758d63dcde |
|
1694 | changeset: 0:9f758d63dcde | |
1695 | user: test |
|
1695 | user: test | |
1696 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1696 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1697 | summary: a |
|
1697 | summary: a | |
1698 |
|
1698 | |||
1699 | enable obsolete to test hidden feature |
|
1699 | enable obsolete to test hidden feature | |
1700 |
|
1700 | |||
1701 | $ cat >> $HGRCPATH << EOF |
|
1701 | $ cat >> $HGRCPATH << EOF | |
1702 | > [experimental] |
|
1702 | > [experimental] | |
1703 | > stabilization=createmarkers |
|
1703 | > stabilization=createmarkers | |
1704 | > EOF |
|
1704 | > EOF | |
1705 |
|
1705 | |||
1706 | $ hg log --template='{rev}:{node}\n' |
|
1706 | $ hg log --template='{rev}:{node}\n' | |
1707 | 1:a765632148dc55d38c35c4f247c618701886cb2f |
|
1707 | 1:a765632148dc55d38c35c4f247c618701886cb2f | |
1708 | 0:9f758d63dcde62d547ebfb08e1e7ee96535f2b05 |
|
1708 | 0:9f758d63dcde62d547ebfb08e1e7ee96535f2b05 | |
1709 | $ hg debugobsolete a765632148dc55d38c35c4f247c618701886cb2f |
|
1709 | $ hg debugobsolete a765632148dc55d38c35c4f247c618701886cb2f | |
1710 | obsoleted 1 changesets |
|
1710 | obsoleted 1 changesets | |
1711 | $ hg up null -q |
|
1711 | $ hg up null -q | |
1712 | $ hg log --template='{rev}:{node}\n' |
|
1712 | $ hg log --template='{rev}:{node}\n' | |
1713 | 0:9f758d63dcde62d547ebfb08e1e7ee96535f2b05 |
|
1713 | 0:9f758d63dcde62d547ebfb08e1e7ee96535f2b05 | |
1714 | $ hg log --template='{rev}:{node}\n' --hidden |
|
1714 | $ hg log --template='{rev}:{node}\n' --hidden | |
1715 | 1:a765632148dc55d38c35c4f247c618701886cb2f |
|
1715 | 1:a765632148dc55d38c35c4f247c618701886cb2f | |
1716 | 0:9f758d63dcde62d547ebfb08e1e7ee96535f2b05 |
|
1716 | 0:9f758d63dcde62d547ebfb08e1e7ee96535f2b05 | |
1717 | $ hg log -r a |
|
1717 | $ hg log -r a | |
1718 | abort: hidden revision 'a'! |
|
1718 | abort: hidden revision 'a'! | |
1719 | (use --hidden to access hidden revisions) |
|
1719 | (use --hidden to access hidden revisions) | |
1720 | [255] |
|
1720 | [255] | |
1721 |
|
1721 | |||
1722 | test that parent prevent a changeset to be hidden |
|
1722 | test that parent prevent a changeset to be hidden | |
1723 |
|
1723 | |||
1724 | $ hg up 1 -q --hidden |
|
1724 | $ hg up 1 -q --hidden | |
1725 | $ hg log --template='{rev}:{node}\n' |
|
1725 | $ hg log --template='{rev}:{node}\n' | |
1726 | 1:a765632148dc55d38c35c4f247c618701886cb2f |
|
1726 | 1:a765632148dc55d38c35c4f247c618701886cb2f | |
1727 | 0:9f758d63dcde62d547ebfb08e1e7ee96535f2b05 |
|
1727 | 0:9f758d63dcde62d547ebfb08e1e7ee96535f2b05 | |
1728 |
|
1728 | |||
1729 | test that second parent prevent a changeset to be hidden too |
|
1729 | test that second parent prevent a changeset to be hidden too | |
1730 |
|
1730 | |||
1731 | $ hg debugsetparents 0 1 # nothing suitable to merge here |
|
1731 | $ hg debugsetparents 0 1 # nothing suitable to merge here | |
1732 | $ hg log --template='{rev}:{node}\n' |
|
1732 | $ hg log --template='{rev}:{node}\n' | |
1733 | 1:a765632148dc55d38c35c4f247c618701886cb2f |
|
1733 | 1:a765632148dc55d38c35c4f247c618701886cb2f | |
1734 | 0:9f758d63dcde62d547ebfb08e1e7ee96535f2b05 |
|
1734 | 0:9f758d63dcde62d547ebfb08e1e7ee96535f2b05 | |
1735 | $ hg debugsetparents 1 |
|
1735 | $ hg debugsetparents 1 | |
1736 | $ hg up -q null |
|
1736 | $ hg up -q null | |
1737 |
|
1737 | |||
1738 | bookmarks prevent a changeset being hidden |
|
1738 | bookmarks prevent a changeset being hidden | |
1739 |
|
1739 | |||
1740 | $ hg bookmark --hidden -r 1 X |
|
1740 | $ hg bookmark --hidden -r 1 X | |
1741 | $ hg log --template '{rev}:{node}\n' |
|
1741 | $ hg log --template '{rev}:{node}\n' | |
1742 | 1:a765632148dc55d38c35c4f247c618701886cb2f |
|
1742 | 1:a765632148dc55d38c35c4f247c618701886cb2f | |
1743 | 0:9f758d63dcde62d547ebfb08e1e7ee96535f2b05 |
|
1743 | 0:9f758d63dcde62d547ebfb08e1e7ee96535f2b05 | |
1744 | $ hg bookmark -d X |
|
1744 | $ hg bookmark -d X | |
1745 |
|
1745 | |||
1746 | divergent bookmarks are not hidden |
|
1746 | divergent bookmarks are not hidden | |
1747 |
|
1747 | |||
1748 | $ hg bookmark --hidden -r 1 X@foo |
|
1748 | $ hg bookmark --hidden -r 1 X@foo | |
1749 | $ hg log --template '{rev}:{node}\n' |
|
1749 | $ hg log --template '{rev}:{node}\n' | |
1750 | 1:a765632148dc55d38c35c4f247c618701886cb2f |
|
1750 | 1:a765632148dc55d38c35c4f247c618701886cb2f | |
1751 | 0:9f758d63dcde62d547ebfb08e1e7ee96535f2b05 |
|
1751 | 0:9f758d63dcde62d547ebfb08e1e7ee96535f2b05 | |
1752 |
|
1752 | |||
1753 | test hidden revision 0 (issue5385) |
|
1753 | test hidden revision 0 (issue5385) | |
1754 |
|
1754 | |||
1755 | $ hg bookmark -d X@foo |
|
1755 | $ hg bookmark -d X@foo | |
1756 | $ hg up null -q |
|
1756 | $ hg up null -q | |
1757 | $ hg debugobsolete 9f758d63dcde62d547ebfb08e1e7ee96535f2b05 |
|
1757 | $ hg debugobsolete 9f758d63dcde62d547ebfb08e1e7ee96535f2b05 | |
1758 | obsoleted 1 changesets |
|
1758 | obsoleted 1 changesets | |
1759 | $ echo f > b |
|
1759 | $ echo f > b | |
1760 | $ hg ci -Am'b' -d '2 0' |
|
1760 | $ hg ci -Am'b' -d '2 0' | |
1761 | adding b |
|
1761 | adding b | |
1762 | $ echo f >> b |
|
1762 | $ echo f >> b | |
1763 | $ hg ci -m'b bis' -d '3 0' |
|
1763 | $ hg ci -m'b bis' -d '3 0' | |
1764 | $ hg log -T'{rev}:{node}\n' |
|
1764 | $ hg log -T'{rev}:{node}\n' | |
1765 | 3:d7d28b288a6b83d5d2cf49f10c5974deed3a1d2e |
|
1765 | 3:d7d28b288a6b83d5d2cf49f10c5974deed3a1d2e | |
1766 | 2:94375ec45bddd2a824535fc04855bd058c926ec0 |
|
1766 | 2:94375ec45bddd2a824535fc04855bd058c926ec0 | |
1767 |
|
1767 | |||
1768 | $ hg log -T'{rev}:{node}\n' -r: |
|
1768 | $ hg log -T'{rev}:{node}\n' -r: | |
1769 | 2:94375ec45bddd2a824535fc04855bd058c926ec0 |
|
1769 | 2:94375ec45bddd2a824535fc04855bd058c926ec0 | |
1770 | 3:d7d28b288a6b83d5d2cf49f10c5974deed3a1d2e |
|
1770 | 3:d7d28b288a6b83d5d2cf49f10c5974deed3a1d2e | |
1771 | $ hg log -T'{rev}:{node}\n' -r:tip |
|
1771 | $ hg log -T'{rev}:{node}\n' -r:tip | |
1772 | 2:94375ec45bddd2a824535fc04855bd058c926ec0 |
|
1772 | 2:94375ec45bddd2a824535fc04855bd058c926ec0 | |
1773 | 3:d7d28b288a6b83d5d2cf49f10c5974deed3a1d2e |
|
1773 | 3:d7d28b288a6b83d5d2cf49f10c5974deed3a1d2e | |
1774 | $ hg log -T'{rev}:{node}\n' -r:0 |
|
1774 | $ hg log -T'{rev}:{node}\n' -r:0 | |
1775 | abort: hidden revision '0'! |
|
1775 | abort: hidden revision '0'! | |
1776 | (use --hidden to access hidden revisions) |
|
1776 | (use --hidden to access hidden revisions) | |
1777 | [255] |
|
1777 | [255] | |
1778 | $ hg log -T'{rev}:{node}\n' -f |
|
1778 | $ hg log -T'{rev}:{node}\n' -f | |
1779 | 3:d7d28b288a6b83d5d2cf49f10c5974deed3a1d2e |
|
1779 | 3:d7d28b288a6b83d5d2cf49f10c5974deed3a1d2e | |
1780 | 2:94375ec45bddd2a824535fc04855bd058c926ec0 |
|
1780 | 2:94375ec45bddd2a824535fc04855bd058c926ec0 | |
1781 |
|
1781 | |||
1782 | clear extensions configuration |
|
1782 | clear extensions configuration | |
1783 | $ echo '[extensions]' >> $HGRCPATH |
|
1783 | $ echo '[extensions]' >> $HGRCPATH | |
1784 | $ echo "obs=!" >> $HGRCPATH |
|
1784 | $ echo "obs=!" >> $HGRCPATH | |
1785 | $ cd .. |
|
1785 | $ cd .. | |
1786 |
|
1786 | |||
1787 | test -u/-k for problematic encoding |
|
1787 | test -u/-k for problematic encoding | |
1788 | # unicode: cp932: |
|
1788 | # unicode: cp932: | |
1789 | # u30A2 0x83 0x41(= 'A') |
|
1789 | # u30A2 0x83 0x41(= 'A') | |
1790 | # u30C2 0x83 0x61(= 'a') |
|
1790 | # u30C2 0x83 0x61(= 'a') | |
1791 |
|
1791 | |||
1792 | $ hg init problematicencoding |
|
1792 | $ hg init problematicencoding | |
1793 | $ cd problematicencoding |
|
1793 | $ cd problematicencoding | |
1794 |
|
1794 | |||
1795 | $ $PYTHON > setup.sh <<EOF |
|
1795 | $ $PYTHON > setup.sh <<EOF | |
1796 | > print(u''' |
|
1796 | > print(u''' | |
1797 | > echo a > text |
|
1797 | > echo a > text | |
1798 | > hg add text |
|
1798 | > hg add text | |
1799 | > hg --encoding utf-8 commit -u '\u30A2' -m none |
|
1799 | > hg --encoding utf-8 commit -u '\u30A2' -m none | |
1800 | > echo b > text |
|
1800 | > echo b > text | |
1801 | > hg --encoding utf-8 commit -u '\u30C2' -m none |
|
1801 | > hg --encoding utf-8 commit -u '\u30C2' -m none | |
1802 | > echo c > text |
|
1802 | > echo c > text | |
1803 | > hg --encoding utf-8 commit -u none -m '\u30A2' |
|
1803 | > hg --encoding utf-8 commit -u none -m '\u30A2' | |
1804 | > echo d > text |
|
1804 | > echo d > text | |
1805 | > hg --encoding utf-8 commit -u none -m '\u30C2' |
|
1805 | > hg --encoding utf-8 commit -u none -m '\u30C2' | |
1806 | > '''.encode('utf-8')) |
|
1806 | > '''.encode('utf-8')) | |
1807 | > EOF |
|
1807 | > EOF | |
1808 | $ sh < setup.sh |
|
1808 | $ sh < setup.sh | |
1809 |
|
1809 | |||
1810 | test in problematic encoding |
|
1810 | test in problematic encoding | |
1811 | $ $PYTHON > test.sh <<EOF |
|
1811 | $ $PYTHON > test.sh <<EOF | |
1812 | > print(u''' |
|
1812 | > print(u''' | |
1813 | > hg --encoding cp932 log --template '{rev}\\n' -u '\u30A2' |
|
1813 | > hg --encoding cp932 log --template '{rev}\\n' -u '\u30A2' | |
1814 | > echo ==== |
|
1814 | > echo ==== | |
1815 | > hg --encoding cp932 log --template '{rev}\\n' -u '\u30C2' |
|
1815 | > hg --encoding cp932 log --template '{rev}\\n' -u '\u30C2' | |
1816 | > echo ==== |
|
1816 | > echo ==== | |
1817 | > hg --encoding cp932 log --template '{rev}\\n' -k '\u30A2' |
|
1817 | > hg --encoding cp932 log --template '{rev}\\n' -k '\u30A2' | |
1818 | > echo ==== |
|
1818 | > echo ==== | |
1819 | > hg --encoding cp932 log --template '{rev}\\n' -k '\u30C2' |
|
1819 | > hg --encoding cp932 log --template '{rev}\\n' -k '\u30C2' | |
1820 | > '''.encode('cp932')) |
|
1820 | > '''.encode('cp932')) | |
1821 | > EOF |
|
1821 | > EOF | |
1822 | $ sh < test.sh |
|
1822 | $ sh < test.sh | |
1823 | 0 |
|
1823 | 0 | |
1824 | ==== |
|
1824 | ==== | |
1825 | 1 |
|
1825 | 1 | |
1826 | ==== |
|
1826 | ==== | |
1827 | 2 |
|
1827 | 2 | |
1828 | 0 |
|
1828 | 0 | |
1829 | ==== |
|
1829 | ==== | |
1830 | 3 |
|
1830 | 3 | |
1831 | 1 |
|
1831 | 1 | |
1832 |
|
1832 | |||
1833 | $ cd .. |
|
1833 | $ cd .. | |
1834 |
|
1834 | |||
1835 | test hg log on non-existent files and on directories |
|
1835 | test hg log on non-existent files and on directories | |
1836 | $ hg init issue1340 |
|
1836 | $ hg init issue1340 | |
1837 | $ cd issue1340 |
|
1837 | $ cd issue1340 | |
1838 | $ mkdir d1; mkdir D2; mkdir D3.i; mkdir d4.hg; mkdir d5.d; mkdir .d6 |
|
1838 | $ mkdir d1; mkdir D2; mkdir D3.i; mkdir d4.hg; mkdir d5.d; mkdir .d6 | |
1839 | $ echo 1 > d1/f1 |
|
1839 | $ echo 1 > d1/f1 | |
1840 | $ echo 1 > D2/f1 |
|
1840 | $ echo 1 > D2/f1 | |
1841 | $ echo 1 > D3.i/f1 |
|
1841 | $ echo 1 > D3.i/f1 | |
1842 | $ echo 1 > d4.hg/f1 |
|
1842 | $ echo 1 > d4.hg/f1 | |
1843 | $ echo 1 > d5.d/f1 |
|
1843 | $ echo 1 > d5.d/f1 | |
1844 | $ echo 1 > .d6/f1 |
|
1844 | $ echo 1 > .d6/f1 | |
1845 | $ hg -q add . |
|
1845 | $ hg -q add . | |
1846 | $ hg commit -m "a bunch of weird directories" |
|
1846 | $ hg commit -m "a bunch of weird directories" | |
1847 | $ hg log -l1 d1/f1 | grep changeset |
|
1847 | $ hg log -l1 d1/f1 | grep changeset | |
1848 | changeset: 0:65624cd9070a |
|
1848 | changeset: 0:65624cd9070a | |
1849 | $ hg log -l1 f1 |
|
1849 | $ hg log -l1 f1 | |
1850 | $ hg log -l1 . | grep changeset |
|
1850 | $ hg log -l1 . | grep changeset | |
1851 | changeset: 0:65624cd9070a |
|
1851 | changeset: 0:65624cd9070a | |
1852 | $ hg log -l1 ./ | grep changeset |
|
1852 | $ hg log -l1 ./ | grep changeset | |
1853 | changeset: 0:65624cd9070a |
|
1853 | changeset: 0:65624cd9070a | |
1854 | $ hg log -l1 d1 | grep changeset |
|
1854 | $ hg log -l1 d1 | grep changeset | |
1855 | changeset: 0:65624cd9070a |
|
1855 | changeset: 0:65624cd9070a | |
1856 | $ hg log -l1 D2 | grep changeset |
|
1856 | $ hg log -l1 D2 | grep changeset | |
1857 | changeset: 0:65624cd9070a |
|
1857 | changeset: 0:65624cd9070a | |
1858 | $ hg log -l1 D2/f1 | grep changeset |
|
1858 | $ hg log -l1 D2/f1 | grep changeset | |
1859 | changeset: 0:65624cd9070a |
|
1859 | changeset: 0:65624cd9070a | |
1860 | $ hg log -l1 D3.i | grep changeset |
|
1860 | $ hg log -l1 D3.i | grep changeset | |
1861 | changeset: 0:65624cd9070a |
|
1861 | changeset: 0:65624cd9070a | |
1862 | $ hg log -l1 D3.i/f1 | grep changeset |
|
1862 | $ hg log -l1 D3.i/f1 | grep changeset | |
1863 | changeset: 0:65624cd9070a |
|
1863 | changeset: 0:65624cd9070a | |
1864 | $ hg log -l1 d4.hg | grep changeset |
|
1864 | $ hg log -l1 d4.hg | grep changeset | |
1865 | changeset: 0:65624cd9070a |
|
1865 | changeset: 0:65624cd9070a | |
1866 | $ hg log -l1 d4.hg/f1 | grep changeset |
|
1866 | $ hg log -l1 d4.hg/f1 | grep changeset | |
1867 | changeset: 0:65624cd9070a |
|
1867 | changeset: 0:65624cd9070a | |
1868 | $ hg log -l1 d5.d | grep changeset |
|
1868 | $ hg log -l1 d5.d | grep changeset | |
1869 | changeset: 0:65624cd9070a |
|
1869 | changeset: 0:65624cd9070a | |
1870 | $ hg log -l1 d5.d/f1 | grep changeset |
|
1870 | $ hg log -l1 d5.d/f1 | grep changeset | |
1871 | changeset: 0:65624cd9070a |
|
1871 | changeset: 0:65624cd9070a | |
1872 | $ hg log -l1 .d6 | grep changeset |
|
1872 | $ hg log -l1 .d6 | grep changeset | |
1873 | changeset: 0:65624cd9070a |
|
1873 | changeset: 0:65624cd9070a | |
1874 | $ hg log -l1 .d6/f1 | grep changeset |
|
1874 | $ hg log -l1 .d6/f1 | grep changeset | |
1875 | changeset: 0:65624cd9070a |
|
1875 | changeset: 0:65624cd9070a | |
1876 |
|
1876 | |||
1877 | issue3772: hg log -r :null showing revision 0 as well |
|
1877 | issue3772: hg log -r :null showing revision 0 as well | |
1878 |
|
1878 | |||
1879 | $ hg log -r :null |
|
1879 | $ hg log -r :null | |
1880 | changeset: 0:65624cd9070a |
|
1880 | changeset: 0:65624cd9070a | |
1881 | tag: tip |
|
1881 | tag: tip | |
1882 | user: test |
|
1882 | user: test | |
1883 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1883 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1884 | summary: a bunch of weird directories |
|
1884 | summary: a bunch of weird directories | |
1885 |
|
1885 | |||
1886 | changeset: -1:000000000000 |
|
1886 | changeset: -1:000000000000 | |
1887 | user: |
|
1887 | user: | |
1888 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1888 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1889 |
|
1889 | |||
1890 | $ hg log -r null:null |
|
1890 | $ hg log -r null:null | |
1891 | changeset: -1:000000000000 |
|
1891 | changeset: -1:000000000000 | |
1892 | user: |
|
1892 | user: | |
1893 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1893 | date: Thu Jan 01 00:00:00 1970 +0000 | |
1894 |
|
1894 | |||
1895 | working-directory revision requires special treatment |
|
1895 | working-directory revision requires special treatment | |
1896 |
|
1896 | |||
1897 | clean: |
|
1897 | clean: | |
1898 |
|
1898 | |||
1899 | $ hg log -r 'wdir()' --debug |
|
1899 | $ hg log -r 'wdir()' --debug | |
1900 | changeset: 2147483647:ffffffffffffffffffffffffffffffffffffffff |
|
1900 | changeset: 2147483647:ffffffffffffffffffffffffffffffffffffffff | |
1901 | phase: draft |
|
1901 | phase: draft | |
1902 | parent: 0:65624cd9070a035fa7191a54f2b8af39f16b0c08 |
|
1902 | parent: 0:65624cd9070a035fa7191a54f2b8af39f16b0c08 | |
1903 | parent: -1:0000000000000000000000000000000000000000 |
|
1903 | parent: -1:0000000000000000000000000000000000000000 | |
1904 | user: test |
|
1904 | user: test | |
1905 | date: [A-Za-z0-9:+ ]+ (re) |
|
1905 | date: [A-Za-z0-9:+ ]+ (re) | |
1906 | extra: branch=default |
|
1906 | extra: branch=default | |
1907 |
|
1907 | |||
1908 | $ hg log -r 'wdir()' -p --stat |
|
1908 | $ hg log -r 'wdir()' -p --stat | |
1909 | changeset: 2147483647:ffffffffffff |
|
1909 | changeset: 2147483647:ffffffffffff | |
1910 | parent: 0:65624cd9070a |
|
1910 | parent: 0:65624cd9070a | |
1911 | user: test |
|
1911 | user: test | |
1912 | date: [A-Za-z0-9:+ ]+ (re) |
|
1912 | date: [A-Za-z0-9:+ ]+ (re) | |
1913 |
|
1913 | |||
1914 |
|
1914 | |||
1915 |
|
1915 | |||
1916 |
|
1916 | |||
1917 | dirty: |
|
1917 | dirty: | |
1918 |
|
1918 | |||
1919 | $ echo 2 >> d1/f1 |
|
1919 | $ echo 2 >> d1/f1 | |
1920 | $ echo 2 > d1/f2 |
|
1920 | $ echo 2 > d1/f2 | |
1921 | $ hg add d1/f2 |
|
1921 | $ hg add d1/f2 | |
1922 | $ hg remove .d6/f1 |
|
1922 | $ hg remove .d6/f1 | |
1923 | $ hg status |
|
1923 | $ hg status | |
1924 | M d1/f1 |
|
1924 | M d1/f1 | |
1925 | A d1/f2 |
|
1925 | A d1/f2 | |
1926 | R .d6/f1 |
|
1926 | R .d6/f1 | |
1927 |
|
1927 | |||
1928 | $ hg log -r 'wdir()' |
|
1928 | $ hg log -r 'wdir()' | |
1929 | changeset: 2147483647:ffffffffffff |
|
1929 | changeset: 2147483647:ffffffffffff | |
1930 | parent: 0:65624cd9070a |
|
1930 | parent: 0:65624cd9070a | |
1931 | user: test |
|
1931 | user: test | |
1932 | date: [A-Za-z0-9:+ ]+ (re) |
|
1932 | date: [A-Za-z0-9:+ ]+ (re) | |
1933 |
|
1933 | |||
1934 | $ hg log -r 'wdir()' -q |
|
1934 | $ hg log -r 'wdir()' -q | |
1935 | 2147483647:ffffffffffff |
|
1935 | 2147483647:ffffffffffff | |
1936 |
|
1936 | |||
1937 | $ hg log -r 'wdir()' --debug |
|
1937 | $ hg log -r 'wdir()' --debug | |
1938 | changeset: 2147483647:ffffffffffffffffffffffffffffffffffffffff |
|
1938 | changeset: 2147483647:ffffffffffffffffffffffffffffffffffffffff | |
1939 | phase: draft |
|
1939 | phase: draft | |
1940 | parent: 0:65624cd9070a035fa7191a54f2b8af39f16b0c08 |
|
1940 | parent: 0:65624cd9070a035fa7191a54f2b8af39f16b0c08 | |
1941 | parent: -1:0000000000000000000000000000000000000000 |
|
1941 | parent: -1:0000000000000000000000000000000000000000 | |
1942 | user: test |
|
1942 | user: test | |
1943 | date: [A-Za-z0-9:+ ]+ (re) |
|
1943 | date: [A-Za-z0-9:+ ]+ (re) | |
1944 | files: d1/f1 |
|
1944 | files: d1/f1 | |
1945 | files+: d1/f2 |
|
1945 | files+: d1/f2 | |
1946 | files-: .d6/f1 |
|
1946 | files-: .d6/f1 | |
1947 | extra: branch=default |
|
1947 | extra: branch=default | |
1948 |
|
1948 | |||
1949 | $ hg log -r 'wdir()' -p --stat --git |
|
1949 | $ hg log -r 'wdir()' -p --stat --git | |
1950 | changeset: 2147483647:ffffffffffff |
|
1950 | changeset: 2147483647:ffffffffffff | |
1951 | parent: 0:65624cd9070a |
|
1951 | parent: 0:65624cd9070a | |
1952 | user: test |
|
1952 | user: test | |
1953 | date: [A-Za-z0-9:+ ]+ (re) |
|
1953 | date: [A-Za-z0-9:+ ]+ (re) | |
1954 |
|
1954 | |||
1955 | .d6/f1 | 1 - |
|
1955 | .d6/f1 | 1 - | |
1956 | d1/f1 | 1 + |
|
1956 | d1/f1 | 1 + | |
1957 | d1/f2 | 1 + |
|
1957 | d1/f2 | 1 + | |
1958 | 3 files changed, 2 insertions(+), 1 deletions(-) |
|
1958 | 3 files changed, 2 insertions(+), 1 deletions(-) | |
1959 |
|
1959 | |||
1960 | diff --git a/.d6/f1 b/.d6/f1 |
|
1960 | diff --git a/.d6/f1 b/.d6/f1 | |
1961 | deleted file mode 100644 |
|
1961 | deleted file mode 100644 | |
1962 | --- a/.d6/f1 |
|
1962 | --- a/.d6/f1 | |
1963 | +++ /dev/null |
|
1963 | +++ /dev/null | |
1964 | @@ -1,1 +0,0 @@ |
|
1964 | @@ -1,1 +0,0 @@ | |
1965 | -1 |
|
1965 | -1 | |
1966 | diff --git a/d1/f1 b/d1/f1 |
|
1966 | diff --git a/d1/f1 b/d1/f1 | |
1967 | --- a/d1/f1 |
|
1967 | --- a/d1/f1 | |
1968 | +++ b/d1/f1 |
|
1968 | +++ b/d1/f1 | |
1969 | @@ -1,1 +1,2 @@ |
|
1969 | @@ -1,1 +1,2 @@ | |
1970 | 1 |
|
1970 | 1 | |
1971 | +2 |
|
1971 | +2 | |
1972 | diff --git a/d1/f2 b/d1/f2 |
|
1972 | diff --git a/d1/f2 b/d1/f2 | |
1973 | new file mode 100644 |
|
1973 | new file mode 100644 | |
1974 | --- /dev/null |
|
1974 | --- /dev/null | |
1975 | +++ b/d1/f2 |
|
1975 | +++ b/d1/f2 | |
1976 | @@ -0,0 +1,1 @@ |
|
1976 | @@ -0,0 +1,1 @@ | |
1977 | +2 |
|
1977 | +2 | |
1978 |
|
1978 | |||
1979 | $ hg log -r 'wdir()' -Tjson |
|
1979 | $ hg log -r 'wdir()' -Tjson | |
1980 | [ |
|
1980 | [ | |
1981 | { |
|
1981 | { | |
1982 | "rev": null, |
|
1982 | "rev": null, | |
1983 | "node": null, |
|
1983 | "node": null, | |
1984 | "branch": "default", |
|
1984 | "branch": "default", | |
1985 | "phase": "draft", |
|
1985 | "phase": "draft", | |
1986 | "user": "test", |
|
1986 | "user": "test", | |
1987 | "date": [*, 0], (glob) |
|
1987 | "date": [*, 0], (glob) | |
1988 | "desc": "", |
|
1988 | "desc": "", | |
1989 | "bookmarks": [], |
|
1989 | "bookmarks": [], | |
1990 | "tags": [], |
|
1990 | "tags": [], | |
1991 | "parents": ["65624cd9070a035fa7191a54f2b8af39f16b0c08"] |
|
1991 | "parents": ["65624cd9070a035fa7191a54f2b8af39f16b0c08"] | |
1992 | } |
|
1992 | } | |
1993 | ] |
|
1993 | ] | |
1994 |
|
1994 | |||
1995 | $ hg log -r 'wdir()' -Tjson -q |
|
1995 | $ hg log -r 'wdir()' -Tjson -q | |
1996 | [ |
|
1996 | [ | |
1997 | { |
|
1997 | { | |
1998 | "rev": null, |
|
1998 | "rev": null, | |
1999 | "node": null |
|
1999 | "node": null | |
2000 | } |
|
2000 | } | |
2001 | ] |
|
2001 | ] | |
2002 |
|
2002 | |||
2003 | $ hg log -r 'wdir()' -Tjson --debug |
|
2003 | $ hg log -r 'wdir()' -Tjson --debug | |
2004 | [ |
|
2004 | [ | |
2005 | { |
|
2005 | { | |
2006 | "rev": null, |
|
2006 | "rev": null, | |
2007 | "node": null, |
|
2007 | "node": null, | |
2008 | "branch": "default", |
|
2008 | "branch": "default", | |
2009 | "phase": "draft", |
|
2009 | "phase": "draft", | |
2010 | "user": "test", |
|
2010 | "user": "test", | |
2011 | "date": [*, 0], (glob) |
|
2011 | "date": [*, 0], (glob) | |
2012 | "desc": "", |
|
2012 | "desc": "", | |
2013 | "bookmarks": [], |
|
2013 | "bookmarks": [], | |
2014 | "tags": [], |
|
2014 | "tags": [], | |
2015 | "parents": ["65624cd9070a035fa7191a54f2b8af39f16b0c08"], |
|
2015 | "parents": ["65624cd9070a035fa7191a54f2b8af39f16b0c08"], | |
2016 | "manifest": null, |
|
2016 | "manifest": null, | |
2017 | "extra": {"branch": "default"}, |
|
2017 | "extra": {"branch": "default"}, | |
2018 | "modified": ["d1/f1"], |
|
2018 | "modified": ["d1/f1"], | |
2019 | "added": ["d1/f2"], |
|
2019 | "added": ["d1/f2"], | |
2020 | "removed": [".d6/f1"] |
|
2020 | "removed": [".d6/f1"] | |
2021 | } |
|
2021 | } | |
2022 | ] |
|
2022 | ] | |
2023 |
|
2023 | |||
2024 | $ hg revert -aqC |
|
2024 | $ hg revert -aqC | |
2025 |
|
2025 | |||
2026 | Check that adding an arbitrary name shows up in log automatically |
|
2026 | Check that adding an arbitrary name shows up in log automatically | |
2027 |
|
2027 | |||
2028 | $ cat > ../names.py <<EOF |
|
2028 | $ cat > ../names.py <<EOF | |
2029 | > """A small extension to test adding arbitrary names to a repo""" |
|
2029 | > """A small extension to test adding arbitrary names to a repo""" | |
2030 | > from mercurial.namespaces import namespace |
|
2030 | > from __future__ import absolute_import | |
|
2031 | > from mercurial import namespaces | |||
2031 | > |
|
2032 | > | |
2032 | > def reposetup(ui, repo): |
|
2033 | > def reposetup(ui, repo): | |
2033 | > foo = {'foo': repo[0].node()} |
|
2034 | > foo = {'foo': repo[0].node()} | |
2034 | > names = lambda r: foo.keys() |
|
2035 | > names = lambda r: foo.keys() | |
2035 | > namemap = lambda r, name: foo.get(name) |
|
2036 | > namemap = lambda r, name: foo.get(name) | |
2036 | > nodemap = lambda r, node: [name for name, n in foo.iteritems() |
|
2037 | > nodemap = lambda r, node: [name for name, n in foo.iteritems() | |
2037 | > if n == node] |
|
2038 | > if n == node] | |
2038 | > ns = namespace("bars", templatename="bar", logname="barlog", |
|
2039 | > ns = namespaces.namespace( | |
2039 | > colorname="barcolor", listnames=names, namemap=namemap, |
|
2040 | > "bars", templatename="bar", logname="barlog", | |
2040 | > nodemap=nodemap) |
|
2041 | > colorname="barcolor", listnames=names, namemap=namemap, | |
|
2042 | > nodemap=nodemap) | |||
2041 | > |
|
2043 | > | |
2042 | > repo.names.addnamespace(ns) |
|
2044 | > repo.names.addnamespace(ns) | |
2043 | > EOF |
|
2045 | > EOF | |
2044 |
|
2046 | |||
2045 | $ hg --config extensions.names=../names.py log -r 0 |
|
2047 | $ hg --config extensions.names=../names.py log -r 0 | |
2046 | changeset: 0:65624cd9070a |
|
2048 | changeset: 0:65624cd9070a | |
2047 | tag: tip |
|
2049 | tag: tip | |
2048 | barlog: foo |
|
2050 | barlog: foo | |
2049 | user: test |
|
2051 | user: test | |
2050 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
2052 | date: Thu Jan 01 00:00:00 1970 +0000 | |
2051 | summary: a bunch of weird directories |
|
2053 | summary: a bunch of weird directories | |
2052 |
|
2054 | |||
2053 | $ hg --config extensions.names=../names.py \ |
|
2055 | $ hg --config extensions.names=../names.py \ | |
2054 | > --config extensions.color= --config color.log.barcolor=red \ |
|
2056 | > --config extensions.color= --config color.log.barcolor=red \ | |
2055 | > --color=always log -r 0 |
|
2057 | > --color=always log -r 0 | |
2056 | \x1b[0;33mchangeset: 0:65624cd9070a\x1b[0m (esc) |
|
2058 | \x1b[0;33mchangeset: 0:65624cd9070a\x1b[0m (esc) | |
2057 | tag: tip |
|
2059 | tag: tip | |
2058 | \x1b[0;31mbarlog: foo\x1b[0m (esc) |
|
2060 | \x1b[0;31mbarlog: foo\x1b[0m (esc) | |
2059 | user: test |
|
2061 | user: test | |
2060 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
2062 | date: Thu Jan 01 00:00:00 1970 +0000 | |
2061 | summary: a bunch of weird directories |
|
2063 | summary: a bunch of weird directories | |
2062 |
|
2064 | |||
2063 | $ hg --config extensions.names=../names.py log -r 0 --template '{bars}\n' |
|
2065 | $ hg --config extensions.names=../names.py log -r 0 --template '{bars}\n' | |
2064 | foo |
|
2066 | foo | |
2065 |
|
2067 | |||
2066 | $ cd .. |
|
2068 | $ cd .. | |
2067 |
|
2069 | |||
2068 | hg log -f dir across branches |
|
2070 | hg log -f dir across branches | |
2069 |
|
2071 | |||
2070 | $ hg init acrossbranches |
|
2072 | $ hg init acrossbranches | |
2071 | $ cd acrossbranches |
|
2073 | $ cd acrossbranches | |
2072 | $ mkdir d |
|
2074 | $ mkdir d | |
2073 | $ echo a > d/a && hg ci -Aqm a |
|
2075 | $ echo a > d/a && hg ci -Aqm a | |
2074 | $ echo b > d/a && hg ci -Aqm b |
|
2076 | $ echo b > d/a && hg ci -Aqm b | |
2075 | $ hg up -q 0 |
|
2077 | $ hg up -q 0 | |
2076 | $ echo b > d/a && hg ci -Aqm c |
|
2078 | $ echo b > d/a && hg ci -Aqm c | |
2077 | $ hg log -f d -T '{desc}' -G |
|
2079 | $ hg log -f d -T '{desc}' -G | |
2078 | @ c |
|
2080 | @ c | |
2079 | | |
|
2081 | | | |
2080 | o a |
|
2082 | o a | |
2081 |
|
2083 | |||
2082 | Ensure that largefiles doesn't interfere with following a normal file |
|
2084 | Ensure that largefiles doesn't interfere with following a normal file | |
2083 | $ hg --config extensions.largefiles= log -f d -T '{desc}' -G |
|
2085 | $ hg --config extensions.largefiles= log -f d -T '{desc}' -G | |
2084 | The fsmonitor extension is incompatible with the largefiles extension and has been disabled. (fsmonitor !) |
|
2086 | The fsmonitor extension is incompatible with the largefiles extension and has been disabled. (fsmonitor !) | |
2085 | @ c |
|
2087 | @ c | |
2086 | | |
|
2088 | | | |
2087 | o a |
|
2089 | o a | |
2088 |
|
2090 | |||
2089 | $ hg log -f d/a -T '{desc}' -G |
|
2091 | $ hg log -f d/a -T '{desc}' -G | |
2090 | @ c |
|
2092 | @ c | |
2091 | | |
|
2093 | | | |
2092 | o a |
|
2094 | o a | |
2093 |
|
2095 | |||
2094 | $ cd .. |
|
2096 | $ cd .. | |
2095 |
|
2097 | |||
2096 | hg log -f with linkrev pointing to another branch |
|
2098 | hg log -f with linkrev pointing to another branch | |
2097 | ------------------------------------------------- |
|
2099 | ------------------------------------------------- | |
2098 |
|
2100 | |||
2099 | create history with a filerev whose linkrev points to another branch |
|
2101 | create history with a filerev whose linkrev points to another branch | |
2100 |
|
2102 | |||
2101 | $ hg init branchedlinkrev |
|
2103 | $ hg init branchedlinkrev | |
2102 | $ cd branchedlinkrev |
|
2104 | $ cd branchedlinkrev | |
2103 | $ echo 1 > a |
|
2105 | $ echo 1 > a | |
2104 | $ hg commit -Am 'content1' |
|
2106 | $ hg commit -Am 'content1' | |
2105 | adding a |
|
2107 | adding a | |
2106 | $ echo 2 > a |
|
2108 | $ echo 2 > a | |
2107 | $ hg commit -m 'content2' |
|
2109 | $ hg commit -m 'content2' | |
2108 | $ hg up --rev 'desc(content1)' |
|
2110 | $ hg up --rev 'desc(content1)' | |
2109 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
2111 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
2110 | $ echo unrelated > unrelated |
|
2112 | $ echo unrelated > unrelated | |
2111 | $ hg commit -Am 'unrelated' |
|
2113 | $ hg commit -Am 'unrelated' | |
2112 | adding unrelated |
|
2114 | adding unrelated | |
2113 | created new head |
|
2115 | created new head | |
2114 | $ hg graft -r 'desc(content2)' |
|
2116 | $ hg graft -r 'desc(content2)' | |
2115 | grafting 1:2294ae80ad84 "content2" |
|
2117 | grafting 1:2294ae80ad84 "content2" | |
2116 | $ echo 3 > a |
|
2118 | $ echo 3 > a | |
2117 | $ hg commit -m 'content3' |
|
2119 | $ hg commit -m 'content3' | |
2118 | $ hg log -G |
|
2120 | $ hg log -G | |
2119 | @ changeset: 4:50b9b36e9c5d |
|
2121 | @ changeset: 4:50b9b36e9c5d | |
2120 | | tag: tip |
|
2122 | | tag: tip | |
2121 | | user: test |
|
2123 | | user: test | |
2122 | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
2124 | | date: Thu Jan 01 00:00:00 1970 +0000 | |
2123 | | summary: content3 |
|
2125 | | summary: content3 | |
2124 | | |
|
2126 | | | |
2125 | o changeset: 3:15b2327059e5 |
|
2127 | o changeset: 3:15b2327059e5 | |
2126 | | user: test |
|
2128 | | user: test | |
2127 | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
2129 | | date: Thu Jan 01 00:00:00 1970 +0000 | |
2128 | | summary: content2 |
|
2130 | | summary: content2 | |
2129 | | |
|
2131 | | | |
2130 | o changeset: 2:2029acd1168c |
|
2132 | o changeset: 2:2029acd1168c | |
2131 | | parent: 0:ae0a3c9f9e95 |
|
2133 | | parent: 0:ae0a3c9f9e95 | |
2132 | | user: test |
|
2134 | | user: test | |
2133 | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
2135 | | date: Thu Jan 01 00:00:00 1970 +0000 | |
2134 | | summary: unrelated |
|
2136 | | summary: unrelated | |
2135 | | |
|
2137 | | | |
2136 | | o changeset: 1:2294ae80ad84 |
|
2138 | | o changeset: 1:2294ae80ad84 | |
2137 | |/ user: test |
|
2139 | |/ user: test | |
2138 | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
2140 | | date: Thu Jan 01 00:00:00 1970 +0000 | |
2139 | | summary: content2 |
|
2141 | | summary: content2 | |
2140 | | |
|
2142 | | | |
2141 | o changeset: 0:ae0a3c9f9e95 |
|
2143 | o changeset: 0:ae0a3c9f9e95 | |
2142 | user: test |
|
2144 | user: test | |
2143 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
2145 | date: Thu Jan 01 00:00:00 1970 +0000 | |
2144 | summary: content1 |
|
2146 | summary: content1 | |
2145 |
|
2147 | |||
2146 |
|
2148 | |||
2147 | log -f on the file should list the graft result. |
|
2149 | log -f on the file should list the graft result. | |
2148 |
|
2150 | |||
2149 | $ hg log -Gf a |
|
2151 | $ hg log -Gf a | |
2150 | @ changeset: 4:50b9b36e9c5d |
|
2152 | @ changeset: 4:50b9b36e9c5d | |
2151 | | tag: tip |
|
2153 | | tag: tip | |
2152 | | user: test |
|
2154 | | user: test | |
2153 | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
2155 | | date: Thu Jan 01 00:00:00 1970 +0000 | |
2154 | | summary: content3 |
|
2156 | | summary: content3 | |
2155 | | |
|
2157 | | | |
2156 | o changeset: 3:15b2327059e5 |
|
2158 | o changeset: 3:15b2327059e5 | |
2157 | : user: test |
|
2159 | : user: test | |
2158 | : date: Thu Jan 01 00:00:00 1970 +0000 |
|
2160 | : date: Thu Jan 01 00:00:00 1970 +0000 | |
2159 | : summary: content2 |
|
2161 | : summary: content2 | |
2160 | : |
|
2162 | : | |
2161 | o changeset: 0:ae0a3c9f9e95 |
|
2163 | o changeset: 0:ae0a3c9f9e95 | |
2162 | user: test |
|
2164 | user: test | |
2163 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
2165 | date: Thu Jan 01 00:00:00 1970 +0000 | |
2164 | summary: content1 |
|
2166 | summary: content1 | |
2165 |
|
2167 | |||
2166 |
|
2168 | |||
2167 | plain log lists the original version |
|
2169 | plain log lists the original version | |
2168 | (XXX we should probably list both) |
|
2170 | (XXX we should probably list both) | |
2169 |
|
2171 | |||
2170 | $ hg log -G a |
|
2172 | $ hg log -G a | |
2171 | @ changeset: 4:50b9b36e9c5d |
|
2173 | @ changeset: 4:50b9b36e9c5d | |
2172 | : tag: tip |
|
2174 | : tag: tip | |
2173 | : user: test |
|
2175 | : user: test | |
2174 | : date: Thu Jan 01 00:00:00 1970 +0000 |
|
2176 | : date: Thu Jan 01 00:00:00 1970 +0000 | |
2175 | : summary: content3 |
|
2177 | : summary: content3 | |
2176 | : |
|
2178 | : | |
2177 | : o changeset: 1:2294ae80ad84 |
|
2179 | : o changeset: 1:2294ae80ad84 | |
2178 | :/ user: test |
|
2180 | :/ user: test | |
2179 | : date: Thu Jan 01 00:00:00 1970 +0000 |
|
2181 | : date: Thu Jan 01 00:00:00 1970 +0000 | |
2180 | : summary: content2 |
|
2182 | : summary: content2 | |
2181 | : |
|
2183 | : | |
2182 | o changeset: 0:ae0a3c9f9e95 |
|
2184 | o changeset: 0:ae0a3c9f9e95 | |
2183 | user: test |
|
2185 | user: test | |
2184 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
2186 | date: Thu Jan 01 00:00:00 1970 +0000 | |
2185 | summary: content1 |
|
2187 | summary: content1 | |
2186 |
|
2188 | |||
2187 |
|
2189 | |||
2188 | hg log -f from the grafted changeset |
|
2190 | hg log -f from the grafted changeset | |
2189 | (The bootstrap should properly take the topology in account) |
|
2191 | (The bootstrap should properly take the topology in account) | |
2190 |
|
2192 | |||
2191 | $ hg up 'desc(content3)^' |
|
2193 | $ hg up 'desc(content3)^' | |
2192 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
2194 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
2193 | $ hg log -Gf a |
|
2195 | $ hg log -Gf a | |
2194 | @ changeset: 3:15b2327059e5 |
|
2196 | @ changeset: 3:15b2327059e5 | |
2195 | : user: test |
|
2197 | : user: test | |
2196 | : date: Thu Jan 01 00:00:00 1970 +0000 |
|
2198 | : date: Thu Jan 01 00:00:00 1970 +0000 | |
2197 | : summary: content2 |
|
2199 | : summary: content2 | |
2198 | : |
|
2200 | : | |
2199 | o changeset: 0:ae0a3c9f9e95 |
|
2201 | o changeset: 0:ae0a3c9f9e95 | |
2200 | user: test |
|
2202 | user: test | |
2201 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
2203 | date: Thu Jan 01 00:00:00 1970 +0000 | |
2202 | summary: content1 |
|
2204 | summary: content1 | |
2203 |
|
2205 | |||
2204 |
|
2206 | |||
2205 | Test that we use the first non-hidden changeset in that case. |
|
2207 | Test that we use the first non-hidden changeset in that case. | |
2206 |
|
2208 | |||
2207 | (hide the changeset) |
|
2209 | (hide the changeset) | |
2208 |
|
2210 | |||
2209 | $ hg log -T '{node}\n' -r 1 |
|
2211 | $ hg log -T '{node}\n' -r 1 | |
2210 | 2294ae80ad8447bc78383182eeac50cb049df623 |
|
2212 | 2294ae80ad8447bc78383182eeac50cb049df623 | |
2211 | $ hg debugobsolete 2294ae80ad8447bc78383182eeac50cb049df623 |
|
2213 | $ hg debugobsolete 2294ae80ad8447bc78383182eeac50cb049df623 | |
2212 | obsoleted 1 changesets |
|
2214 | obsoleted 1 changesets | |
2213 | $ hg log -G |
|
2215 | $ hg log -G | |
2214 | o changeset: 4:50b9b36e9c5d |
|
2216 | o changeset: 4:50b9b36e9c5d | |
2215 | | tag: tip |
|
2217 | | tag: tip | |
2216 | | user: test |
|
2218 | | user: test | |
2217 | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
2219 | | date: Thu Jan 01 00:00:00 1970 +0000 | |
2218 | | summary: content3 |
|
2220 | | summary: content3 | |
2219 | | |
|
2221 | | | |
2220 | @ changeset: 3:15b2327059e5 |
|
2222 | @ changeset: 3:15b2327059e5 | |
2221 | | user: test |
|
2223 | | user: test | |
2222 | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
2224 | | date: Thu Jan 01 00:00:00 1970 +0000 | |
2223 | | summary: content2 |
|
2225 | | summary: content2 | |
2224 | | |
|
2226 | | | |
2225 | o changeset: 2:2029acd1168c |
|
2227 | o changeset: 2:2029acd1168c | |
2226 | | parent: 0:ae0a3c9f9e95 |
|
2228 | | parent: 0:ae0a3c9f9e95 | |
2227 | | user: test |
|
2229 | | user: test | |
2228 | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
2230 | | date: Thu Jan 01 00:00:00 1970 +0000 | |
2229 | | summary: unrelated |
|
2231 | | summary: unrelated | |
2230 | | |
|
2232 | | | |
2231 | o changeset: 0:ae0a3c9f9e95 |
|
2233 | o changeset: 0:ae0a3c9f9e95 | |
2232 | user: test |
|
2234 | user: test | |
2233 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
2235 | date: Thu Jan 01 00:00:00 1970 +0000 | |
2234 | summary: content1 |
|
2236 | summary: content1 | |
2235 |
|
2237 | |||
2236 |
|
2238 | |||
2237 | Check that log on the file does not drop the file revision. |
|
2239 | Check that log on the file does not drop the file revision. | |
2238 |
|
2240 | |||
2239 | $ hg log -G a |
|
2241 | $ hg log -G a | |
2240 | o changeset: 4:50b9b36e9c5d |
|
2242 | o changeset: 4:50b9b36e9c5d | |
2241 | | tag: tip |
|
2243 | | tag: tip | |
2242 | | user: test |
|
2244 | | user: test | |
2243 | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
2245 | | date: Thu Jan 01 00:00:00 1970 +0000 | |
2244 | | summary: content3 |
|
2246 | | summary: content3 | |
2245 | | |
|
2247 | | | |
2246 | @ changeset: 3:15b2327059e5 |
|
2248 | @ changeset: 3:15b2327059e5 | |
2247 | : user: test |
|
2249 | : user: test | |
2248 | : date: Thu Jan 01 00:00:00 1970 +0000 |
|
2250 | : date: Thu Jan 01 00:00:00 1970 +0000 | |
2249 | : summary: content2 |
|
2251 | : summary: content2 | |
2250 | : |
|
2252 | : | |
2251 | o changeset: 0:ae0a3c9f9e95 |
|
2253 | o changeset: 0:ae0a3c9f9e95 | |
2252 | user: test |
|
2254 | user: test | |
2253 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
2255 | date: Thu Jan 01 00:00:00 1970 +0000 | |
2254 | summary: content1 |
|
2256 | summary: content1 | |
2255 |
|
2257 | |||
2256 |
|
2258 | |||
2257 | Even when a head revision is linkrev-shadowed. |
|
2259 | Even when a head revision is linkrev-shadowed. | |
2258 |
|
2260 | |||
2259 | $ hg log -T '{node}\n' -r 4 |
|
2261 | $ hg log -T '{node}\n' -r 4 | |
2260 | 50b9b36e9c5df2c6fc6dcefa8ad0da929e84aed2 |
|
2262 | 50b9b36e9c5df2c6fc6dcefa8ad0da929e84aed2 | |
2261 | $ hg debugobsolete 50b9b36e9c5df2c6fc6dcefa8ad0da929e84aed2 |
|
2263 | $ hg debugobsolete 50b9b36e9c5df2c6fc6dcefa8ad0da929e84aed2 | |
2262 | obsoleted 1 changesets |
|
2264 | obsoleted 1 changesets | |
2263 | $ hg log -G a |
|
2265 | $ hg log -G a | |
2264 | @ changeset: 3:15b2327059e5 |
|
2266 | @ changeset: 3:15b2327059e5 | |
2265 | : tag: tip |
|
2267 | : tag: tip | |
2266 | : user: test |
|
2268 | : user: test | |
2267 | : date: Thu Jan 01 00:00:00 1970 +0000 |
|
2269 | : date: Thu Jan 01 00:00:00 1970 +0000 | |
2268 | : summary: content2 |
|
2270 | : summary: content2 | |
2269 | : |
|
2271 | : | |
2270 | o changeset: 0:ae0a3c9f9e95 |
|
2272 | o changeset: 0:ae0a3c9f9e95 | |
2271 | user: test |
|
2273 | user: test | |
2272 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
2274 | date: Thu Jan 01 00:00:00 1970 +0000 | |
2273 | summary: content1 |
|
2275 | summary: content1 | |
2274 |
|
2276 | |||
2275 |
|
2277 | |||
2276 | $ cd .. |
|
2278 | $ cd .. | |
2277 |
|
2279 | |||
2278 | Even when the file revision is missing from some head: |
|
2280 | Even when the file revision is missing from some head: | |
2279 |
|
2281 | |||
2280 | $ hg init issue4490 |
|
2282 | $ hg init issue4490 | |
2281 | $ cd issue4490 |
|
2283 | $ cd issue4490 | |
2282 | $ echo '[experimental]' >> .hg/hgrc |
|
2284 | $ echo '[experimental]' >> .hg/hgrc | |
2283 | $ echo 'stabilization=createmarkers' >> .hg/hgrc |
|
2285 | $ echo 'stabilization=createmarkers' >> .hg/hgrc | |
2284 | $ echo a > a |
|
2286 | $ echo a > a | |
2285 | $ hg ci -Am0 |
|
2287 | $ hg ci -Am0 | |
2286 | adding a |
|
2288 | adding a | |
2287 | $ echo b > b |
|
2289 | $ echo b > b | |
2288 | $ hg ci -Am1 |
|
2290 | $ hg ci -Am1 | |
2289 | adding b |
|
2291 | adding b | |
2290 | $ echo B > b |
|
2292 | $ echo B > b | |
2291 | $ hg ci --amend -m 1 |
|
2293 | $ hg ci --amend -m 1 | |
2292 | $ hg up 0 |
|
2294 | $ hg up 0 | |
2293 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
2295 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
2294 | $ echo c > c |
|
2296 | $ echo c > c | |
2295 | $ hg ci -Am2 |
|
2297 | $ hg ci -Am2 | |
2296 | adding c |
|
2298 | adding c | |
2297 | created new head |
|
2299 | created new head | |
2298 | $ hg up 'head() and not .' |
|
2300 | $ hg up 'head() and not .' | |
2299 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
2301 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
2300 | $ hg log -G |
|
2302 | $ hg log -G | |
2301 | o changeset: 4:db815d6d32e6 |
|
2303 | o changeset: 4:db815d6d32e6 | |
2302 | | tag: tip |
|
2304 | | tag: tip | |
2303 | | parent: 0:f7b1eb17ad24 |
|
2305 | | parent: 0:f7b1eb17ad24 | |
2304 | | user: test |
|
2306 | | user: test | |
2305 | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
2307 | | date: Thu Jan 01 00:00:00 1970 +0000 | |
2306 | | summary: 2 |
|
2308 | | summary: 2 | |
2307 | | |
|
2309 | | | |
2308 | | @ changeset: 3:9bc8ce7f9356 |
|
2310 | | @ changeset: 3:9bc8ce7f9356 | |
2309 | |/ parent: 0:f7b1eb17ad24 |
|
2311 | |/ parent: 0:f7b1eb17ad24 | |
2310 | | user: test |
|
2312 | | user: test | |
2311 | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
2313 | | date: Thu Jan 01 00:00:00 1970 +0000 | |
2312 | | summary: 1 |
|
2314 | | summary: 1 | |
2313 | | |
|
2315 | | | |
2314 | o changeset: 0:f7b1eb17ad24 |
|
2316 | o changeset: 0:f7b1eb17ad24 | |
2315 | user: test |
|
2317 | user: test | |
2316 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
2318 | date: Thu Jan 01 00:00:00 1970 +0000 | |
2317 | summary: 0 |
|
2319 | summary: 0 | |
2318 |
|
2320 | |||
2319 | $ hg log -f -G b |
|
2321 | $ hg log -f -G b | |
2320 | @ changeset: 3:9bc8ce7f9356 |
|
2322 | @ changeset: 3:9bc8ce7f9356 | |
2321 | | parent: 0:f7b1eb17ad24 |
|
2323 | | parent: 0:f7b1eb17ad24 | |
2322 | ~ user: test |
|
2324 | ~ user: test | |
2323 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
2325 | date: Thu Jan 01 00:00:00 1970 +0000 | |
2324 | summary: 1 |
|
2326 | summary: 1 | |
2325 |
|
2327 | |||
2326 | $ hg log -G b |
|
2328 | $ hg log -G b | |
2327 | @ changeset: 3:9bc8ce7f9356 |
|
2329 | @ changeset: 3:9bc8ce7f9356 | |
2328 | | parent: 0:f7b1eb17ad24 |
|
2330 | | parent: 0:f7b1eb17ad24 | |
2329 | ~ user: test |
|
2331 | ~ user: test | |
2330 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
2332 | date: Thu Jan 01 00:00:00 1970 +0000 | |
2331 | summary: 1 |
|
2333 | summary: 1 | |
2332 |
|
2334 | |||
2333 | $ cd .. |
|
2335 | $ cd .. | |
2334 |
|
2336 | |||
2335 | Check proper report when the manifest changes but not the file issue4499 |
|
2337 | Check proper report when the manifest changes but not the file issue4499 | |
2336 | ------------------------------------------------------------------------ |
|
2338 | ------------------------------------------------------------------------ | |
2337 |
|
2339 | |||
2338 | $ hg init issue4499 |
|
2340 | $ hg init issue4499 | |
2339 | $ cd issue4499 |
|
2341 | $ cd issue4499 | |
2340 | $ for f in A B C D F E G H I J K L M N O P Q R S T U; do |
|
2342 | $ for f in A B C D F E G H I J K L M N O P Q R S T U; do | |
2341 | > echo 1 > $f; |
|
2343 | > echo 1 > $f; | |
2342 | > hg add $f; |
|
2344 | > hg add $f; | |
2343 | > done |
|
2345 | > done | |
2344 | $ hg commit -m 'A1B1C1' |
|
2346 | $ hg commit -m 'A1B1C1' | |
2345 | $ echo 2 > A |
|
2347 | $ echo 2 > A | |
2346 | $ echo 2 > B |
|
2348 | $ echo 2 > B | |
2347 | $ echo 2 > C |
|
2349 | $ echo 2 > C | |
2348 | $ hg commit -m 'A2B2C2' |
|
2350 | $ hg commit -m 'A2B2C2' | |
2349 | $ hg up 0 |
|
2351 | $ hg up 0 | |
2350 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
2352 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
2351 | $ echo 3 > A |
|
2353 | $ echo 3 > A | |
2352 | $ echo 2 > B |
|
2354 | $ echo 2 > B | |
2353 | $ echo 2 > C |
|
2355 | $ echo 2 > C | |
2354 | $ hg commit -m 'A3B2C2' |
|
2356 | $ hg commit -m 'A3B2C2' | |
2355 | created new head |
|
2357 | created new head | |
2356 |
|
2358 | |||
2357 | $ hg log -G |
|
2359 | $ hg log -G | |
2358 | @ changeset: 2:fe5fc3d0eb17 |
|
2360 | @ changeset: 2:fe5fc3d0eb17 | |
2359 | | tag: tip |
|
2361 | | tag: tip | |
2360 | | parent: 0:abf4f0e38563 |
|
2362 | | parent: 0:abf4f0e38563 | |
2361 | | user: test |
|
2363 | | user: test | |
2362 | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
2364 | | date: Thu Jan 01 00:00:00 1970 +0000 | |
2363 | | summary: A3B2C2 |
|
2365 | | summary: A3B2C2 | |
2364 | | |
|
2366 | | | |
2365 | | o changeset: 1:07dcc6b312c0 |
|
2367 | | o changeset: 1:07dcc6b312c0 | |
2366 | |/ user: test |
|
2368 | |/ user: test | |
2367 | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
2369 | | date: Thu Jan 01 00:00:00 1970 +0000 | |
2368 | | summary: A2B2C2 |
|
2370 | | summary: A2B2C2 | |
2369 | | |
|
2371 | | | |
2370 | o changeset: 0:abf4f0e38563 |
|
2372 | o changeset: 0:abf4f0e38563 | |
2371 | user: test |
|
2373 | user: test | |
2372 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
2374 | date: Thu Jan 01 00:00:00 1970 +0000 | |
2373 | summary: A1B1C1 |
|
2375 | summary: A1B1C1 | |
2374 |
|
2376 | |||
2375 |
|
2377 | |||
2376 | Log -f on B should reports current changesets |
|
2378 | Log -f on B should reports current changesets | |
2377 |
|
2379 | |||
2378 | $ hg log -fG B |
|
2380 | $ hg log -fG B | |
2379 | @ changeset: 2:fe5fc3d0eb17 |
|
2381 | @ changeset: 2:fe5fc3d0eb17 | |
2380 | | tag: tip |
|
2382 | | tag: tip | |
2381 | | parent: 0:abf4f0e38563 |
|
2383 | | parent: 0:abf4f0e38563 | |
2382 | | user: test |
|
2384 | | user: test | |
2383 | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
2385 | | date: Thu Jan 01 00:00:00 1970 +0000 | |
2384 | | summary: A3B2C2 |
|
2386 | | summary: A3B2C2 | |
2385 | | |
|
2387 | | | |
2386 | o changeset: 0:abf4f0e38563 |
|
2388 | o changeset: 0:abf4f0e38563 | |
2387 | user: test |
|
2389 | user: test | |
2388 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
2390 | date: Thu Jan 01 00:00:00 1970 +0000 | |
2389 | summary: A1B1C1 |
|
2391 | summary: A1B1C1 | |
2390 |
|
2392 | |||
2391 | $ cd .. |
|
2393 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now