Incorrect file name processing in Mercurial

I am using TortoiseHg 0.5 (which includes Mercurial 1.0.2) on Vista64. My understanding from the Mercurial Book is that Mercurial should handle file names in a case-insensitive way for a case-insensitive file system (like NTFS, which is what I am). However, I believe that my Mercurial installation is actually case sensitive:

>hg status -A foo
C foo
>hg status -A FOO
? FOO

Could this be an error in Mercurial, an error in the Mercurial TortoiseHg assembly, or is it something else? How can I perform case-sensitive file name processing using Mercurial on Windows?

+5
source share
2 answers

Mercurial 1.1! : " ".

Windows Mercurial :

>hg status -A foo
C foo
>hg status -A FOO
C foo

, , :

>ren foo FOO
>hg status -A fOO
C foo

, - .

, .hgignore . , glob; regexp (? i) , .

+10

, hgbook. 7.7 , , , .

7.7.2 " " :

, Mercurial , . , , Mercurial , , .

hg status -A FOO, , :

  • , , , "FOO", , "foo" "yup, "
  • , , , "FOO", , "?" , hg

, mercurial NTFS, :

  • hg init
  • -a > Foo
  • hg add Foo
  • hg commit -m 'commit Foo'
  • Foo not-foo
  • move not-foo FOO
  • hg status

, hg , , , , - , hg .

linux, :

! Foo
? FOO
+7
source

All Articles