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