comparison tests/test-rebase-abort.t @ 38181:712d6f535fc9 stable

tests: demonstrate inconsistent messaging around interrupted rebases
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 02 Jun 2018 13:25:45 -0400
parents 4441705b7111
children 79c54e7c0c52
comparison
equal deleted inserted replaced
38180:6ae62d62c3f6 38181:712d6f535fc9
374 $ hg --config extensions.n=$TESTDIR/failfilemerge.py rebase -s 3 -d tip 374 $ hg --config extensions.n=$TESTDIR/failfilemerge.py rebase -s 3 -d tip
375 rebasing 3:3a71550954f1 "b" 375 rebasing 3:3a71550954f1 "b"
376 rebasing 4:e80b69427d80 "c" 376 rebasing 4:e80b69427d80 "c"
377 abort: ^C 377 abort: ^C
378 [255] 378 [255]
379
380 New operations are blocked with the correct state message
381
382 $ find .hg -name '*state' -prune | sort
383 .hg/dirstate
384 .hg/merge/state
385 .hg/rebasestate
386 .hg/undo.backup.dirstate
387 .hg/undo.dirstate
388 .hg/updatestate
389
390 XXX: This should complain about needing to abort/continue rebase
391 $ hg rebase -s 3 -d tip
392 abort: last update was interrupted
393 (use 'hg update' to get a consistent checkout)
394 [255]
395 $ hg up .
396 abort: rebase in progress
397 (use 'hg rebase --continue' or 'hg rebase --abort')
398 [255]
399 $ hg up -C .
400 abort: rebase in progress
401 (use 'hg rebase --continue' or 'hg rebase --abort')
402 [255]
403
404 XXX: This should complain about needing to abort/continue rebase
405 $ hg graft 3
406 abort: last update was interrupted
407 (use 'hg update' to get a consistent checkout)
408 [255]
409
379 $ hg rebase --abort 410 $ hg rebase --abort
380 saved backup bundle to $TESTTMP/interrupted/.hg/strip-backup/3d8812cf300d-93041a90-backup.hg 411 saved backup bundle to $TESTTMP/interrupted/.hg/strip-backup/3d8812cf300d-93041a90-backup.hg
381 rebase aborted 412 rebase aborted
382 $ hg log -G --template "{rev} {desc} {bookmarks}" 413 $ hg log -G --template "{rev} {desc} {bookmarks}"
383 o 6 no-a 414 o 6 no-a