Mercurial > evolve
comparison tests/test-evolve-obshistory-amend-then-fold.t @ 5301:e8660b28bfee
obslog: makes --origin flag the default
Test change have been carefully validated.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Thu, 07 May 2020 01:29:48 +0200 |
parents | 258c0a99c5b0 |
children | 011b53a9d03c 87966baf6ea9 |
comparison
equal
deleted
inserted
replaced
5300:a9f9edb168a1 | 5301:e8660b28bfee |
---|---|
78 | 78 |
79 Actual test | 79 Actual test |
80 ----------- | 80 ----------- |
81 | 81 |
82 Check that obslog on head shows a coherent graph | 82 Check that obslog on head shows a coherent graph |
83 $ hg obslog eb5a0daa2192 --patch | 83 $ hg obslog eb5a0daa2192 --patch --no-origin |
84 @ eb5a0daa2192 (4) C0 | 84 @ eb5a0daa2192 (4) C0 |
85 |\ | 85 |\ |
86 x | 471f378eab4c (1) A0 | 86 x | 471f378eab4c (1) A0 |
87 / folded(description, content) as eb5a0daa2192 using fold by test (Thu Jan 01 00:00:00 1970 +0000) | 87 / folded(description, content) as eb5a0daa2192 using fold by test (Thu Jan 01 00:00:00 1970 +0000) |
88 | diff -r 471f378eab4c -r eb5a0daa2192 changeset-description | 88 | diff -r 471f378eab4c -r eb5a0daa2192 changeset-description |
111 @@ -1,1 +1,1 @@ | 111 @@ -1,1 +1,1 @@ |
112 -B0 | 112 -B0 |
113 +B1 | 113 +B1 |
114 | 114 |
115 | 115 |
116 $ hg obslog eb5a0daa2192 --patch | |
117 @ eb5a0daa2192 (4) C0 | |
118 |\ folded(description, parent, content) from 471f378eab4c, b7ea6d14e664 using fold by test (Thu Jan 01 00:00:00 1970 +0000) | |
119 | | (No patch available, too many predecessors (2)) | |
120 | | | |
121 x | 471f378eab4c (1) A0 | |
122 / | |
123 x b7ea6d14e664 (3) B1 | |
124 | reworded(description) from 0dec01379d3b using amend by test (Thu Jan 01 00:00:00 1970 +0000) | |
125 | diff -r 0dec01379d3b -r b7ea6d14e664 changeset-description | |
126 | --- a/changeset-description | |
127 | +++ b/changeset-description | |
128 | @@ -1,1 +1,1 @@ | |
129 | -B0 | |
130 | +B1 | |
131 | | |
132 | | |
133 x 0dec01379d3b (2) B0 | |
134 | |
116 Check that obslog on A0 with all option shows everything | 135 Check that obslog on A0 with all option shows everything |
117 $ hg obslog 1 --hidden --all --patch | 136 $ hg obslog 1 --hidden --all --patch --no-origin |
118 @ eb5a0daa2192 (4) C0 | 137 @ eb5a0daa2192 (4) C0 |
119 |\ | 138 |\ |
120 x | 471f378eab4c (1) A0 | 139 x | 471f378eab4c (1) A0 |
121 / folded(description, content) as eb5a0daa2192 using fold by test (Thu Jan 01 00:00:00 1970 +0000) | 140 / folded(description, content) as eb5a0daa2192 using fold by test (Thu Jan 01 00:00:00 1970 +0000) |
122 | diff -r 471f378eab4c -r eb5a0daa2192 changeset-description | 141 | diff -r 471f378eab4c -r eb5a0daa2192 changeset-description |
145 @@ -1,1 +1,1 @@ | 164 @@ -1,1 +1,1 @@ |
146 -B0 | 165 -B0 |
147 +B1 | 166 +B1 |
148 | 167 |
149 | 168 |
150 $ hg obslog eb5a0daa2192 --no-graph -Tjson | python -m json.tool | 169 $ hg obslog 1 --hidden --all --patch |
170 @ eb5a0daa2192 (4) C0 | |
171 |\ folded(description, parent, content) from 471f378eab4c, b7ea6d14e664 using fold by test (Thu Jan 01 00:00:00 1970 +0000) | |
172 | | (No patch available, too many predecessors (2)) | |
173 | | | |
174 x | 471f378eab4c (1) A0 | |
175 / | |
176 x b7ea6d14e664 (3) B1 | |
177 | reworded(description) from 0dec01379d3b using amend by test (Thu Jan 01 00:00:00 1970 +0000) | |
178 | diff -r 0dec01379d3b -r b7ea6d14e664 changeset-description | |
179 | --- a/changeset-description | |
180 | +++ b/changeset-description | |
181 | @@ -1,1 +1,1 @@ | |
182 | -B0 | |
183 | +B1 | |
184 | | |
185 | | |
186 x 0dec01379d3b (2) B0 | |
187 | |
188 $ hg obslog eb5a0daa2192 --no-graph --no-origin -Tjson | python -m json.tool | |
151 [ | 189 [ |
152 { | 190 { |
153 "markers": [], | 191 "markers": [], |
154 "node": "eb5a0daa21923bbf8caeb2c42085b9e463861fd0", | 192 "node": "eb5a0daa21923bbf8caeb2c42085b9e463861fd0", |
155 "shortdescription": "C0" | 193 "shortdescription": "C0" |
233 "test" | 271 "test" |
234 ], | 272 ], |
235 "verb": "folded" | 273 "verb": "folded" |
236 } | 274 } |
237 ], | 275 ], |
276 "node": "471f378eab4c5e25f6c77f785b27c936efb22874", | |
277 "shortdescription": "A0" | |
278 } | |
279 ] | |
280 $ hg obslog eb5a0daa2192 --no-graph -Tjson | python -m json.tool | |
281 [ | |
282 { | |
283 "markers": [ | |
284 { | |
285 "dates": [ | |
286 [ | |
287 *, (glob) | |
288 0 | |
289 ], | |
290 [ | |
291 *, (glob) | |
292 0 | |
293 ] | |
294 ], | |
295 "effects": [ | |
296 *, (glob) | |
297 *, (glob) | |
298 "content" | |
299 ], | |
300 "operations": [ | |
301 "fold" | |
302 ], | |
303 "prednodes": [ | |
304 "471f378eab4c5e25f6c77f785b27c936efb22874", | |
305 "b7ea6d14e664bdc8922221f7992631b50da3fb07" | |
306 ], | |
307 "users": [ | |
308 "test" | |
309 ], | |
310 "verb": "folded" | |
311 } | |
312 ], | |
313 "node": "eb5a0daa21923bbf8caeb2c42085b9e463861fd0", | |
314 "shortdescription": "C0" | |
315 }, | |
316 { | |
317 "markers": [ | |
318 { | |
319 "dates": [ | |
320 [ | |
321 *, (glob) | |
322 0 | |
323 ] | |
324 ], | |
325 "effects": [ | |
326 "description" | |
327 ], | |
328 "operations": [ | |
329 "amend" | |
330 ], | |
331 "prednodes": [ | |
332 "0dec01379d3be6318c470ead31b1fe7ae7cb53d5" | |
333 ], | |
334 "users": [ | |
335 "test" | |
336 ], | |
337 "verb": "reworded" | |
338 } | |
339 ], | |
340 "node": "b7ea6d14e664bdc8922221f7992631b50da3fb07", | |
341 "shortdescription": "B1" | |
342 }, | |
343 { | |
344 "markers": [], | |
345 "node": "0dec01379d3be6318c470ead31b1fe7ae7cb53d5", | |
346 "shortdescription": "B0" | |
347 }, | |
348 { | |
349 "markers": [], | |
238 "node": "471f378eab4c5e25f6c77f785b27c936efb22874", | 350 "node": "471f378eab4c5e25f6c77f785b27c936efb22874", |
239 "shortdescription": "A0" | 351 "shortdescription": "A0" |
240 } | 352 } |
241 ] | 353 ] |
242 $ hg update 471f378eab4c | 354 $ hg update 471f378eab4c |