Fossil SCM

Versioned files in Windows still appear as extras if not commited with proper case

Closed

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:

  1. Take a checked out Fossil directory on Windows.

  2. Create two subdirectories inside: "Work" and "Play".

  3. Create a new file in directory "Work" named "test.txt".

  4. Run 'fossil extras'; it reports "Work/test.txt".

  5. Run 'fossil add "work\test.txt" (noticed the lowercase "w"); it reports "ADDED work/test.txt".

  6. Run 'fossil commit -m "blah"'; it does it successfully.

  7. 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)

jan.nijtmans 12 years, 11 months ago

Probably dup of [85017e9273], as I cannot reproduce this any more.

Please verify that this is really fixed on trunk now.

jan.nijtmans 12 years, 8 months ago

Dup of [85017e9273]. Fixed in [e8e444eceb]

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button