Mercurial > hg
comparison tests/test-rebase-dest.t @ 35385:469b06b4c3ca
tests: add commit hashes to log commands in rebase tests
Commit hashes are a useful way to ensure the content of commits made in the
tests are not changing, even if we don't query every aspect of every commit.
(And some properties, like extras, are rarely printed at all.)
Many of the rebase log -G calls didn't show hashes; by adding hashes to places
that weren't showing them we can help protect those tests from unwanted
changes.
Differential Revision: https://phab.mercurial-scm.org/D1650
author | Phil Cohen <phillco@fb.com> |
---|---|
date | Sun, 10 Dec 2017 21:57:37 -0800 |
parents | 3398603c5621 |
children | 4441705b7111 |
comparison
equal
deleted
inserted
replaced
35384:b9bdee046cc2 | 35385:469b06b4c3ca |
---|---|
109 > [extensions] | 109 > [extensions] |
110 > drawdag=$TESTDIR/drawdag.py | 110 > drawdag=$TESTDIR/drawdag.py |
111 > [phases] | 111 > [phases] |
112 > publish=False | 112 > publish=False |
113 > [alias] | 113 > [alias] |
114 > tglog = log -G --template "{rev}: {desc} {instabilities}" -r 'sort(all(), topo)' | 114 > tglog = log -G --template "{rev}: {node|short} {desc} {instabilities}" -r 'sort(all(), topo)' |
115 > [extensions] | 115 > [extensions] |
116 > maprevset=$TESTTMP/maprevset.py | 116 > maprevset=$TESTTMP/maprevset.py |
117 > [experimental] | 117 > [experimental] |
118 > evolution=true | 118 > evolution=true |
119 > EOF | 119 > EOF |
172 > A B | 172 > A B |
173 > EOS | 173 > EOS |
174 already rebased 0:426bada5c675 "A" (A) | 174 already rebased 0:426bada5c675 "A" (A) |
175 already rebased 2:dc0947a82db8 "C" (C) | 175 already rebased 2:dc0947a82db8 "C" (C) |
176 rebasing 3:004dc1679908 "D" (D tip) | 176 rebasing 3:004dc1679908 "D" (D tip) |
177 o 4: D | 177 o 4: d8d8601abd5e D |
178 | 178 |
179 o 2: C | 179 o 2: dc0947a82db8 C |
180 | | 180 | |
181 | o 1: B | 181 | o 1: fc2b737bb2e5 B |
182 | | 182 | |
183 o 0: A | 183 o 0: 426bada5c675 A |
184 | 184 |
185 Destination resolves to multiple changesets: | 185 Destination resolves to multiple changesets: |
186 | 186 |
187 $ rebasewithdag -s B -d 'ALLSRC+SRC' <<'EOS' | 187 $ rebasewithdag -s B -d 'ALLSRC+SRC' <<'EOS' |
188 > C | 188 > C |
217 > EOS | 217 > EOS |
218 rebasing 2:112478962961 "B" (B) | 218 rebasing 2:112478962961 "B" (B) |
219 rebasing 4:26805aba1e60 "C" (C) | 219 rebasing 4:26805aba1e60 "C" (C) |
220 rebasing 3:cd488e83d208 "E" (E) | 220 rebasing 3:cd488e83d208 "E" (E) |
221 rebasing 5:0069ba24938a "F" (F tip) | 221 rebasing 5:0069ba24938a "F" (F tip) |
222 o 9: F | 222 o 9: d150ff263fc8 F |
223 | | 223 | |
224 o 8: E | 224 o 8: 66f30a1a2eab E |
225 | | 225 | |
226 | o 7: C | 226 | o 7: 93db94ffae0e C |
227 | | | 227 | | |
228 | o 6: B | 228 | o 6: d0071c3b0c88 B |
229 | | | 229 | | |
230 | o 1: D | 230 | o 1: 058c1e1fb10a D |
231 | | 231 | |
232 o 0: A | 232 o 0: 426bada5c675 A |
233 | 233 |
234 Different destinations for merge changesets with a same root: | 234 Different destinations for merge changesets with a same root: |
235 | 235 |
236 $ rebasewithdag -s B -d '((parents(SRC)-B-A)::) - (::ALLSRC)' <<'EOS' | 236 $ rebasewithdag -s B -d '((parents(SRC)-B-A)::) - (::ALLSRC)' <<'EOS' |
237 > C G | 237 > C G |
242 > |\| | 242 > |\| |
243 > A D | 243 > A D |
244 > EOS | 244 > EOS |
245 rebasing 3:a4256619d830 "B" (B) | 245 rebasing 3:a4256619d830 "B" (B) |
246 rebasing 6:8e139e245220 "C" (C tip) | 246 rebasing 6:8e139e245220 "C" (C tip) |
247 o 8: C | 247 o 8: 51e2ce92e06a C |
248 |\ | 248 |\ |
249 | o 7: B | 249 | o 7: 2ed0c8546285 B |
250 | |\ | 250 | |\ |
251 o | | 5: G | 251 o | | 5: 8fdb2c1feb20 G |
252 | | | | 252 | | | |
253 | | o 4: E | 253 | | o 4: cd488e83d208 E |
254 | | | | 254 | | | |
255 o | | 2: F | 255 o | | 2: a6661b868de9 F |
256 / / | 256 / / |
257 | o 1: D | 257 | o 1: 058c1e1fb10a D |
258 | | 258 | |
259 o 0: A | 259 o 0: 426bada5c675 A |
260 | 260 |
261 Move to a previous parent: | 261 Move to a previous parent: |
262 | 262 |
263 $ rebasewithdag -s E+F+G -d 'SRC^^' <<'EOS' | 263 $ rebasewithdag -s E+F+G -d 'SRC^^' <<'EOS' |
264 > H | 264 > H |
272 > A | 272 > A |
273 > EOS | 273 > EOS |
274 rebasing 4:33441538d4aa "F" (F) | 274 rebasing 4:33441538d4aa "F" (F) |
275 rebasing 6:cf43ad9da869 "G" (G) | 275 rebasing 6:cf43ad9da869 "G" (G) |
276 rebasing 7:eef94f3b5f03 "H" (H tip) | 276 rebasing 7:eef94f3b5f03 "H" (H tip) |
277 o 10: H | 277 o 10: b3d84c6666cf H |
278 | | 278 | |
279 | o 5: D | 279 | o 5: f585351a92f8 D |
280 |/ | 280 |/ |
281 o 3: C | 281 o 3: 26805aba1e60 C |
282 | | 282 | |
283 | o 9: G | 283 | o 9: f7c28a1a15e2 G |
284 |/ | 284 |/ |
285 o 1: B | 285 o 1: 112478962961 B |
286 | | 286 | |
287 | o 8: F | 287 | o 8: 02aa697facf7 F |
288 |/ | 288 |/ |
289 | o 2: E | 289 | o 2: 7fb047a69f22 E |
290 |/ | 290 |/ |
291 o 0: A | 291 o 0: 426bada5c675 A |
292 | 292 |
293 Source overlaps with destination: | 293 Source overlaps with destination: |
294 | 294 |
295 $ rebasewithdag -s 'B+C+D' -d 'map(SRC, "B:C,C:D")' <<'EOS' | 295 $ rebasewithdag -s 'B+C+D' -d 'map(SRC, "B:C,C:D")' <<'EOS' |
296 > B C D | 296 > B C D |
297 > \|/ | 297 > \|/ |
298 > A | 298 > A |
299 > EOS | 299 > EOS |
300 rebasing 2:dc0947a82db8 "C" (C) | 300 rebasing 2:dc0947a82db8 "C" (C) |
301 rebasing 1:112478962961 "B" (B) | 301 rebasing 1:112478962961 "B" (B) |
302 o 5: B | 302 o 5: 5fe9935d5222 B |
303 | | 303 | |
304 o 4: C | 304 o 4: 12d20731b9e0 C |
305 | | 305 | |
306 o 3: D | 306 o 3: b18e25de2cf5 D |
307 | | 307 | |
308 o 0: A | 308 o 0: 426bada5c675 A |
309 | 309 |
310 Detect cycles early: | 310 Detect cycles early: |
311 | 311 |
312 $ rebasewithdag -r 'all()-Z' -d 'map(SRC, "A:B,B:C,C:D,D:B")' <<'EOS' | 312 $ rebasewithdag -r 'all()-Z' -d 'map(SRC, "A:B,B:C,C:D,D:B")' <<'EOS' |
313 > A B C | 313 > A B C |
343 already rebased 1:112478962961 "B" (B) | 343 already rebased 1:112478962961 "B" (B) |
344 already rebased 2:dc0947a82db8 "C" (C) | 344 already rebased 2:dc0947a82db8 "C" (C) |
345 already rebased 3:b18e25de2cf5 "D" (D) | 345 already rebased 3:b18e25de2cf5 "D" (D) |
346 already rebased 4:312782b8f06e "E" (E) | 346 already rebased 4:312782b8f06e "E" (E) |
347 already rebased 5:ad6717a6a58e "F" (F tip) | 347 already rebased 5:ad6717a6a58e "F" (F tip) |
348 o 5: F | 348 o 5: ad6717a6a58e F |
349 | | 349 | |
350 o 3: D | 350 o 3: b18e25de2cf5 D |
351 | | 351 | |
352 | o 4: E | 352 | o 4: 312782b8f06e E |
353 | |\ | 353 | |\ |
354 +---o 2: C | 354 +---o 2: dc0947a82db8 C |
355 | | | 355 | | |
356 | o 1: B | 356 | o 1: 112478962961 B |
357 |/ | 357 |/ |
358 o 0: A | 358 o 0: 426bada5c675 A |
359 | 359 |
360 Massively rewrite the DAG: | 360 Massively rewrite the DAG: |
361 | 361 |
362 $ rebasewithdag -r 'all()' -d 'map(SRC, "A:I,I:null,H:A,B:J,J:C,C:H,D:E,F:G,G:K,K:D,E:B")' <<'EOS' | 362 $ rebasewithdag -r 'all()' -d 'map(SRC, "A:I,I:null,H:A,B:J,J:C,C:H,D:E,F:G,G:K,K:D,E:B")' <<'EOS' |
363 > D G K | 363 > D G K |
377 rebasing 3:7fb047a69f22 "E" (E) | 377 rebasing 3:7fb047a69f22 "E" (E) |
378 rebasing 8:f585351a92f8 "D" (D) | 378 rebasing 8:f585351a92f8 "D" (D) |
379 rebasing 10:ae41898d7875 "K" (K tip) | 379 rebasing 10:ae41898d7875 "K" (K tip) |
380 rebasing 9:711f53bbef0b "G" (G) | 380 rebasing 9:711f53bbef0b "G" (G) |
381 rebasing 6:64a8289d2492 "F" (F) | 381 rebasing 6:64a8289d2492 "F" (F) |
382 o 21: F | 382 o 21: 3735afb3713a F |
383 | | 383 | |
384 o 20: G | 384 o 20: 07698142d7a7 G |
385 | | 385 | |
386 o 19: K | 386 o 19: 33aba52e7e72 K |
387 | | 387 | |
388 o 18: D | 388 o 18: 9fdae89dc5a1 D |
389 | | 389 | |
390 o 17: E | 390 o 17: 277dda9a65ee E |
391 | | 391 | |
392 o 16: B | 392 o 16: 9c74fd8657ad B |
393 | | 393 | |
394 o 15: J | 394 o 15: 6527eb0688bb J |
395 | | 395 | |
396 o 14: C | 396 o 14: e94d655b928d C |
397 | | 397 | |
398 o 13: H | 398 o 13: 620d6d349459 H |
399 | | 399 | |
400 o 12: A | 400 o 12: a569a116758f A |
401 | | 401 | |
402 o 11: I | 402 o 11: 2bf1302f5c18 I |
403 | 403 |
404 Resolve instability: | 404 Resolve instability: |
405 | 405 |
406 $ rebasewithdag <<'EOF' -r 'orphan()-obsolete()' -d 'max((successors(max(roots(ALLSRC) & ::SRC)^)-obsolete())::)' | 406 $ rebasewithdag <<'EOF' -r 'orphan()-obsolete()' -d 'max((successors(max(roots(ALLSRC) & ::SRC)^)-obsolete())::)' |
407 > F2 | 407 > F2 |
424 rebasing 3:26805aba1e60 "C" (C) | 424 rebasing 3:26805aba1e60 "C" (C) |
425 rebasing 6:f585351a92f8 "D" (D) | 425 rebasing 6:f585351a92f8 "D" (D) |
426 rebasing 10:ffebc37c5d0b "E3" (E3) | 426 rebasing 10:ffebc37c5d0b "E3" (E3) |
427 rebasing 13:fb184bcfeee8 "F2" (F2) | 427 rebasing 13:fb184bcfeee8 "F2" (F2) |
428 rebasing 11:dc838ab4c0da "G" (G) | 428 rebasing 11:dc838ab4c0da "G" (G) |
429 o 22: G | 429 o 22: 174f63d574a8 G |
430 | | 430 | |
431 o 21: F2 | 431 o 21: c9d9fbe76705 F2 |
432 | | 432 | |
433 o 20: E3 | 433 o 20: 0a03c2ede755 E3 |
434 | | 434 | |
435 o 19: D | 435 o 19: 228d9d2541b1 D |
436 | | 436 | |
437 o 18: C | 437 o 18: cd856b400c95 C |
438 | | 438 | |
439 o 17: J | 439 o 17: 9148200c858c J |
440 | | 440 | |
441 o 15: I2 | 441 o 15: eb74780f5094 I2 |
442 | | 442 | |
443 o 12: H | 443 o 12: 78309edd643f H |
444 | | 444 | |
445 o 5: B2 | 445 o 5: 4b4531bd8e1d B2 |
446 | | 446 | |
447 o 4: N | 447 o 4: 337c285c272b N |
448 | | 448 | |
449 o 2: M | 449 o 2: 699bc4b6fa22 M |
450 | | 450 | |
451 o 0: A | 451 o 0: 426bada5c675 A |
452 | 452 |