tests/test-casefolding
changeset 12603 f1646efc54a6
parent 12598 e660e4a178c6
child 12604 415ab8911724
equal deleted inserted replaced
12598:e660e4a178c6 12603:f1646efc54a6
     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 # on linux hfs keeps the old case stored, force it
       
    35 mv a aa
       
    36 mv aa A
       
    37 hg ci -Am addA
       
    38 # Used to fail under case insensitive fs
       
    39 hg up -C 0
       
    40 hg up -C
       
    41 cd ..
       
    42 
       
    43 
       
    44