diff --git a/tests/test-removeemptydirs.t b/tests/test-removeemptydirs.t --- a/tests/test-removeemptydirs.t +++ b/tests/test-removeemptydirs.t @@ -87,8 +87,8 @@ directory: $ hg co -qr 'desc(first_rebase_source)' $ cd $TESTTMP/hgrebase/somedir $ hg --config extensions.rebase= rebase -qr . -d 'desc(first_rebase_dest)' - current directory was removed - (consider changing to repo root: $TESTTMP/hgrebase) + current directory was removed (rmcwd !) + (consider changing to repo root: $TESTTMP/hgrebase) (rmcwd !) $ cd $TESTTMP/hgrebase/somedir (The current node is the rebased first_rebase_source on top of first_rebase_dest) @@ -174,7 +174,9 @@ Enter the first directory: Histedit doing 'pick, pick, fold': - $ hg histedit --commands /dev/stdin < pick 6274c77c93c3 1 add bar > pick ff70a87b588f 0 add foo > fold 9992bb0ac0db 2 add baz @@ -196,6 +198,25 @@ successfully, but doesn't really do anyt 1:5c806432464a add foo 0:d17db4b0303a add bar +#else + + $ cd $TESTTMP/issue5826_withrm + + $ hg histedit --commands - < pick 6274c77c93c3 1 add bar + > pick ff70a87b588f 0 add foo + > fold 9992bb0ac0db 2 add baz + > EOF + saved backup bundle to $TESTTMP/issue5826_withrm/.hg/strip-backup/5c806432464a-cd4c8d86-histedit.hg + + $ hg log -T '{rev}:{node|short} {desc}\n' + 1:b9eddaa97cbc add foo + *** + add baz + 0:d17db4b0303a add bar + +#endif + Now test that again with experimental.removeemptydirs=false: $ hg init issue5826_norm $ cd issue5826_norm @@ -227,7 +248,7 @@ Enter the first directory: Histedit doing 'pick, pick, fold': - $ hg histedit --commands /dev/stdin < pick 6274c77c93c3 1 add bar > pick ff70a87b588f 0 add foo > fold 9992bb0ac0db 2 add baz @@ -275,6 +296,9 @@ reproduce; we're using a separate file d > y > a > EOF + +The split succeeds on no-rmcwd platforms, which alters the rest of the tests +#if rmcwd $ cat ../split_commands | hg split current directory was removed (consider changing to repo root: $TESTTMP/hgsplit) @@ -292,6 +316,7 @@ reproduce; we're using a separate file d abort: $ENOENT$ [255] +#endif Let's try that again without the rmdir $ cd $TESTTMP/hgsplit/somedir