comparison tests/test-rebase-scenario-global.t @ 20335:e40520642e64 stable

rebase: do not crash in panic when cwd disapear in the process (issue4121) Before this patch rebase crashed badly when it happend. (not abort, crash). Fix courtesy of Matt Mackall.
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Fri, 31 Jan 2014 15:13:15 -0800
parents dc5157841361
children 7731a2281cf0
comparison
equal deleted inserted replaced
20334:205599e31870 20335:e40520642e64
647 | | 647 | |
648 | o 1: 'B' 648 | o 1: 'B'
649 |/ 649 |/
650 o 0: 'A' 650 o 0: 'A'
651 651
652
653 Test that rebase is not confused by $CWD disapearing during rebase (issue 4121)
654
655 $ cd ..
656 $ hg init cwd-vanish
657 $ cd cwd-vanish
658 $ touch initial-file
659 $ hg add initial-file
660 $ hg commit -m 'initial commit'
661 $ touch dest-file
662 $ hg add dest-file
663 $ hg commit -m 'dest commit'
664 $ hg up 0
665 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
666 $ touch other-file
667 $ hg add other-file
668 $ hg commit -m 'first source commit'
669 created new head
670 $ mkdir subdir
671 $ cd subdir
672 $ touch subfile
673 $ hg add subfile
674 $ hg commit -m 'second source with subdir'
675 $ hg rebase -b . -d 1 --traceback
676 saved backup bundle to $TESTTMP/cwd-vanish/.hg/strip-backup/779a07b1b7a0-backup.hg (glob)