Fossil SCM
Versioned files in Windows still appear as extras if not commited with proper case
a2dc3b67a2605ca…
· opened 15 years, 4 months ago
- Type
- Code_Defect
- Priority
- —
- Severity
- Minor
- Resolution
- Duplicate
- Subsystem
- —
- Created
- Nov. 19, 2010 3:10 a.m.
It appears that on Windows, Fossil will "case-insensitively" 'fossil add' a file provided on the command line; however, 'fossil extras' will still list already-versioned file as extras if the file was not originally added with its exact, case-sensitive name.
Steps to reproduce:
-
Take a checked out Fossil directory on Windows.
-
Create two subdirectories inside: "Work" and "Play".
-
Create a new file in directory "Work" named "test.txt".
-
Run 'fossil extras'; it reports "Work/test.txt".
-
Run 'fossil add "work\test.txt" (noticed the lowercase "w"); it reports "ADDED work/test.txt".
-
Run 'fossil commit -m "blah"'; it does it successfully.
-
Run 'fossil extras'; it reports "Work/test.txt".
anonymous claiming to be Joerg Sonnenberger added on 2010-11-19 12:13:37: Windows is case-preserving, but case-insensitive. That means it doesn't care if you use WORK or work. Unless you explicitly iterate over the directory and use strcasecmp or so, you can't tell the difference. This easily explains the difference in behavior of "fossil extra".
Comments (2)
Probably dup of [85017e9273], as I cannot reproduce this any more.
Please verify that this is really fixed on trunk now.
Dup of [85017e9273]. Fixed in [e8e444eceb]