changeset 47580:5f836c10ed3d

test-removeemptydirs: adjust to Windows behavior for the `histedit` case Windows stay in the "same" directory and the warning message is not applicable. This make `tests/test-removeemptydirs.t` pass on Windows. Differential Revision: https://phab.mercurial-scm.org/D11055
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 10 Jul 2021 02:25:06 +0200
parents f2846abd9e21
children 28a914b3d4ce
files tests/test-removeemptydirs.t
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-removeemptydirs.t	Sat Jul 10 02:18:56 2021 +0200
+++ b/tests/test-removeemptydirs.t	Sat Jul 10 02:25:06 2021 +0200
@@ -103,6 +103,8 @@
 A directory with the right pass exists at the end of the run, but it is a
 different directory than the current one.
 
+Windows is not affected
+
   $ hg init hghistedit
   $ cd hghistedit
   $ echo hi > r0
@@ -122,8 +124,8 @@
   > EOF
   $ cd $TESTTMP/hghistedit/somedir
   $ hg $DO_RM --config extensions.histedit= histedit -q --commands ../histedit_commands
-  current directory was removed
-  (consider changing to repo root: $TESTTMP/hghistedit)
+  current directory was removed (no-windows !)
+  (consider changing to repo root: $TESTTMP/hghistedit) (no-windows !)
   $ ls -1 $TESTTMP/hghistedit/
   histedit_commands
   r0
@@ -135,6 +137,7 @@
   $ ls -1 $TESTTMP/hghistedit/somedir
   foo
   $ ls -1
+  foo (windows !)
 
 Get out of the doomed directory