Re: [PATCH] tests: stabilize test-removeemptydirs.t on Windows

2018-09-07 Thread Yuya Nishihara
On Fri, 07 Sep 2018 00:27:43 -0400, Matt Harbison wrote:
> # HG changeset patch
> # User Matt Harbison 
> # Date 1536291444 14400
> #  Thu Sep 06 23:37:24 2018 -0400
> # Node ID e5449ff273d68abd3fd4e7b5766fb6d22edf30b7
> # Parent  7df9ae38c75ca7fd4d0d20802fbc4ab489bb1f06
> tests: stabilize test-removeemptydirs.t on Windows

Queued, thanks.
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


[PATCH] tests: stabilize test-removeemptydirs.t on Windows

2018-09-06 Thread Matt Harbison
# HG changeset patch
# User Matt Harbison 
# Date 1536291444 14400
#  Thu Sep 06 23:37:24 2018 -0400
# Node ID e5449ff273d68abd3fd4e7b5766fb6d22edf30b7
# Parent  7df9ae38c75ca7fd4d0d20802fbc4ab489bb1f06
tests: stabilize test-removeemptydirs.t on Windows

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
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel