Patchwork D11055: test-removeemptydirs: adjust to Windows behavior for the `histedit` case

login
register
mail settings
Submitter phabricator
Date July 10, 2021, 12:38 a.m.
Message ID <differential-rev-PHID-DREV-bidajj2iu7vrlfjygif7-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49367/
State Superseded
Headers show

Comments

phabricator - July 10, 2021, 12:38 a.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  Windows stay in the "same" directory and the message is not applicable.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D11055

AFFECTED FILES
  tests/test-removeemptydirs.t

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/tests/test-removeemptydirs.t b/tests/test-removeemptydirs.t
--- a/tests/test-removeemptydirs.t
+++ b/tests/test-removeemptydirs.t
@@ -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