[PATCH 02 of 11] test-casefolding: fix wrong case on hfs on linux

Simon Heimberg simohe at besonet.ch
Fri Aug 7 14:43:00 CDT 2009


# HG changeset patch
# User Simon Heimberg <simohe at besonet.ch>
# Date 1249652451 -7200
# Node ID 2c63a9b4845fbdee8a2def68e0f43dac69146089
# Parent  908c916881d86c34ccd2145af9a3d8aade4888bf
test-casefolding: fix wrong case on hfs on linux

on linux hfs keeps the old case of the file stored
force it by renameing to another name and back

diff -r 908c916881d8 -r 2c63a9b4845f tests/test-casefolding
--- a/tests/test-casefolding	Fre Aug 07 15:34:54 2009 +0200
+++ b/tests/test-casefolding	Fre Aug 07 15:40:51 2009 +0200
@@ -31,6 +31,9 @@
 hg rm a
 hg ci -Am removea
 echo A > A
+# on linux hfs keeps the old case stored, force it
+mv a aa
+mv aa A
 hg ci -Am addA
 # Used to fail under case insensitive fs
 hg up -C 0


More information about the Mercurial-devel mailing list