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