comparison tests/test-prev-next.t @ 5769:ab2c56cdfc19

tests: update more exit codes in case conflicting changes CORE-TEST-OUTPUT-UPDATE: dc00324e80f4
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 04 Feb 2021 19:23:45 +0800
parents 61d2f1cf90f0
children bf303f93a461
comparison
equal deleted inserted replaced
5768:ad80552c706c 5769:ab2c56cdfc19
429 429
430 $ echo bar > bar 430 $ echo bar > bar
431 $ hg prev 431 $ hg prev
432 abort: conflicting changes 432 abort: conflicting changes
433 (do you want --merge?) 433 (do you want --merge?)
434 [255] 434 [20]
435 435
436 $ echo hi > bar 436 $ echo hi > bar
437 $ hg prev 437 $ hg prev
438 0 files updated, 0 files merged, 1 files removed, 0 files unresolved 438 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
439 [1] added foo 439 [1] added foo
441 $ hg add bar 441 $ hg add bar
442 442
443 $ hg next 443 $ hg next
444 abort: conflicting changes 444 abort: conflicting changes
445 (do you want --merge?) 445 (do you want --merge?)
446 [255] 446 [20]
447 447
448 Test that --merge still works fine with commands.update.check set 448 Test that --merge still works fine with commands.update.check set
449 449
450 $ hg config commands.update.check 450 $ hg config commands.update.check
451 noconflict 451 noconflict
452 $ echo hi > bar 452 $ echo hi > bar
453 $ echo bar >> bar 453 $ echo bar >> bar
454 $ hg next 454 $ hg next
455 abort: conflicting changes 455 abort: conflicting changes
456 (do you want --merge?) 456 (do you want --merge?)
457 [255] 457 [20]
458 $ hg next --merge 458 $ hg next --merge
459 merging bar 459 merging bar
460 warning: conflicts while merging bar! (edit, then use 'hg resolve --mark') 460 warning: conflicts while merging bar! (edit, then use 'hg resolve --mark')
461 0 files updated, 0 files merged, 0 files removed, 1 files unresolved 461 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
462 use 'hg resolve' to retry unresolved file merges 462 use 'hg resolve' to retry unresolved file merges