Windows 10 SetCaseSensitiveInfo Support On Recursive Folders

30 views
Skip to first unread message

automate...@cu.net

unread,
Mar 28, 2019, 9:47:29 AM3/28/19
to TortoiseSVN-dev
In Windows 10 v1803 (General Release) if you have the Windows Subsystem For Linux Installed you can set a per folder attribute of SetCaseSensitiveInfo to enable case sensitivity on an NTFS File System.

https://www.tenforums.com/tutorials/111293-enable-disable-case-sensitive-attribute-folders-windows-10-a.html

The quick in dirty is this command:

fsutil.exe file SetCaseSensitiveInfo %CD% enable


This is useful in correcting errors where a developer has checked in a file that only differs in casing but you are in Windows 10 on an NTFS File System.

TortoiseSVN seems to already support this. It must be passing the underlying flag of FILE_FLAG_POSIX_SEMANTICS. I cannot seem to find any discussion of this beyond this post https://sourceforge.net/p/tortoisesvn/tickets/32/ and https://svn.haxx.se/tsvnusers/archive-2007-11/0289.shtml

However unfortunately the setting is per directory and is not "sticky". Therefore when checking out a new subversion working copy TortoiseSVN still encounters tree conflicts in these scenarios until this flag is applied to the folders in question and an svn revert is performed.

Would it be worth the time to implement an optional check to see if the root of the working copy has this flag set and then offer to recursively set it? This would be especially helpful on check-outs as folders are made without any user interaction per say.

At very least it appears that there might be a bug where a file name who only differs in case gets deleted/replaced by TortoiseProc; I will start another topic for this shortly.

Stefan

unread,
Mar 28, 2019, 11:52:54 AM3/28/19
to TortoiseSVN-dev
If you already have the WSFL, why not use the proper linux variant of the svn client?

Also: this would have to be implemented in the svn library itself, not TSVN.
Reply all
Reply to author
Forward
0 new messages