comparison tests/test-casefolding @ 6806:2134d6c09432

Add test for case folding issues
author Patrick Mezard <pmezard@gmail.com>
date Fri, 11 Jul 2008 14:40:44 +0200
parents
children 5cd14e1e8385
comparison
equal deleted inserted replaced
6805:482581431dcd 6806:2134d6c09432
1 #!/bin/sh
2
3 "$TESTDIR/hghave" icasefs || exit 80
4
5 echo '% test file addition with bad case'
6 hg init repo1
7 cd repo1
8 echo a > a
9 hg add A
10 hg st
11 hg ci -m adda
12 hg manifest
13 cd ..
14
15 echo '% test case collision on rename (issue 750)'
16 hg init repo2
17 cd repo2
18 echo a > a
19 hg --debug ci -Am adda
20 hg mv a A
21 # 'a' used to be removed under windows
22 test -f a || echo 'a is missing'
23 hg st
24 cd ..
25
26 echo '% test case collision between revisions (issue 912)'
27 hg init repo3
28 cd repo3
29 echo a > a
30 hg ci -Am adda
31 hg rm a
32 hg ci -Am removea
33 echo A > A
34 hg ci -Am addA
35 # Used to fail under case insensitive fs
36 hg up -C 0
37 hg up -C
38 cd ..
39
40
41