Error if subfolder case doesn't match

Guo Tang tangguo77 at gmail.com
Thu Jan 31 04:46:44 UTC 2008


You ran into the same trouble as I had several weeks ago. 

Short answer: It is windows NTFS's fault.

To solve this issue or give windows user warning seems on mercurial 1.0 
road map. 

http://www.selenic.com/mercurial/wiki/index.cgi/RoadMap

Features for 1.0

    * Finished named branch support (BranchPlan)
    * --- this guy: Fix case collision bugs
    * Level of documentation comparable to competitive SCMs {*}
    * No serious bugs remaining from 0.9 

Target date: Dec 31 2007

Looks like we missed the target date ;-)

Several days ago, there was a long long debate in git mailing list about 
Mac os x hfs+, utf8 filename, case insensitive filename etc. Linux finally 
proposed some kind of hash in git to handle that. I don't know git nor hg 
good enough to understand what he's talking about.  

Any gentlemen on this mailing list understand what Linux is proposing? 
Anything we can borrow from him to mercurial?

Cheers,
Guo 

On Wed, 30 Jan 2008, Giampaolo Fadel wrote:

> Win32, Mercurial 0.9.5:
> If the working directory has a subfolder with mixed uppercase and 
> lowercase characters in the name, when you refer to a file in this 
> subfolder and you write the name of subfolder in different case 
> Mercurial assume as a different file.
> Example
> The directory structure is:
> C:\
>     MyProject
>         Sub                     (Subfolder of the project with mixed case)
>             File1.txt
> 
> C:\MyProject>hg init
> C:\MyProject>hg status
> ? Sub\File1.txt
> C:\MyProject>hg add sub\*.txt                  (sub is lowercase)
> C:\MyProject>hg status
> A sub\File1.txt                                           (??? 2 files ???
> ? Sub\File1.txt                                           (???
> 
> 
> Instead if I write the file name in different case it works right:
> 
> C:\MyProject>hg status
> ? Sub\File1.txt
> C:\MyProject>hg add Sub\file*.*               (The case of subfolder is 
> right but the case of file is wrong)
> C:\MyProject>hg status
> A Sub\File1.txt                                           (OK
> 
> 
> Is it an error ? I'm a newbye on Mercurial! and may be that I don't 
> understand many things.
> Is it an already know error?
> I looked in the bug tracker and mailing list, I found a lot of things 
> concerning case and filename but no one refer to this precise error (or 
> so I think).
> Bye Paolo
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
> 



More information about the Mercurial mailing list