[PATCH STABLE] test-histedit-fold: fix for Windows

Adrian Buehlmann adrian at cadifra.com
Thu Jul 26 16:15:27 CDT 2012


# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1343336914 -7200
# Branch stable
# Node ID 0668364e997d483907dcb03379a3dfa978b346a9
# Parent  98166640b356b4c44bc87ce9137c7647eb728332
test-histedit-fold: fix for Windows

Fixes 336121088ef1 failing with MSYS.

MSYS sh.exe mangled that path by applying its path magic, which caused the
test to fail on Windows.

diff --git a/tests/test-histedit-fold.t b/tests/test-histedit-fold.t
--- a/tests/test-histedit-fold.t
+++ b/tests/test-histedit-fold.t
@@ -208,7 +208,7 @@
   |
   o  0:0189ba417d34 1+2+3
   
-  $ EDITED=`pwd`/../editcommands
+  $ EDITED="$TESTTMP/editcommands"
   $ cat > $EDITED <<EOF
   > pick 617f94f13c0f 1 +4
   > drop 888f9082bf99 2 +5


More information about the Mercurial-devel mailing list