<p>I've been using Subversion for code control with TortoiseSVN to interface with the server for the past few months, and in general it's been going great!  However, occasionally my FoxPro IDE will change the case of a file extension without warning where "<em>program.prg</em>" becomes "<em>program.<strong>PRG</em></strong>")  TortoiseSVN apparently takes this to mean the first file was removed, becoming flagged as "missing" and the second name comes up as "non-versioned", wreaking havoc on my ability to track changes to the file.   I understand that Subversion has it origins in the case-sensitive world of *nix but, is there any way to control this behavior in either Subversion or TortoiseSVN to be file name case-insensitive when used with Windows?</p>

[{'answer_id': 14630, 'author': 'jacobko', 'author_id': 1318, 'author_profile': 'https://Stackoverflow.com/users/1318', 'pm_score': 5, 'selected': True, 'text': '<p>Unfortunately, Subversion is case-sensitive. This is due to the fact that files from Subversion can be checked out on both case-sensitive file systems (e.g., *nix) and case-insensitive file systems (e.g., Windows, Mac).</p>\n\n<p><a href="http://svn.apache.org/repos/asf/subversion/trunk/contrib/hook-scripts/case-insensitive.py" rel="nofollow noreferrer">This pre-commit hook script</a> may help you avoid problems when you check in files. If it doesn\'t solve your problem, my best suggestion is to write a little script to make sure that all extensions are lowercase and run it every time before you check in/check out. It\'ll be a PITA, but maybe your best bet.</p>\n'}, {'answer_id': 22328, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 2, 'selected': False, 'text': '<p>I use TortoiseSVN with VFP, and it mostly-seamlessly handles the case flipping. The only time it doesn\'t is if I have the file open in the IDE when I try to do the commit: the file lock VFP holds confuses it. Is this where your problem comes in, or are there other issues?</p>\n\n<p>I did a presentation at FoxForward last year about using VFP with Subversion: most of the presentation dealt with the command line, but there are a couple of slides at the end that have links to tools that help you work with Subversion in VFP. <a href="http://docs.google.com/Presentation?id=dfxkh6x4_3ghnqc4" rel="nofollow noreferrer">http://docs.google.com/Presentation?id=dfxkh6x4_3ghnqc4</a></p>\n'}, {'answer_id': 63075, 'author': 'SarekOfVulcan', 'author_id': 2531, 'author_profile': 'https://Stackoverflow.com/users/2531', 'pm_score': 1, 'selected': False, 'text': '<p>Kit, you comment above that VFP\'s binary-based source files are tough to work with in Subversion. The link I gave above mentions a couple of tools to make it easier, but the one I work with is Christof Wollenhaupt\'s TwoFox utility -- it converts a VFP project to text-only. You have to run it manually, but I don\'t have a problem with that.</p>\n\n<p><a href="http://www.foxpert.com/docs/cvs.en.htm" rel="nofollow noreferrer">http://www.foxpert.com/docs/cvs.en.htm</a></p>\n'}, {'answer_id': 581839, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 1, 'selected': False, 'text': "<p>I believe the random upper and lower case on the extensions isn't random at all.\nI remember testing on this. If you modify a program from the project manager.\nBy clicking on the modify button let's say. And then save the changes the extension is lower case. If you do a modify command from the command window and save the changes the extension is upper case. Apparently the coders at Microsoft didn't worry about the extension case being the same.</p>\n"}, {'answer_id': 2877580, 'author': 'TamusJRoyce', 'author_id': 458321, 'author_profile': 'https://Stackoverflow.com/users/458321', 'pm_score': 2, 'selected': False, 'text': "<p>Windows does support case sensitivity, but you must send it the correct POSIX flags on CreateFile from the Windows API!  A registry key may need changed (SFU/Tools for Unix and Ultimate Windows 7 has this registry entry already set so windows supports case sensitive file names).</p>\n\n<p>Windows is designed off of Unix, but things such as Explorer.exe and other programs are designed to disallow case sensitivity for backwards compatibility and security (mostly when dealing with dos executing notepad.exe vs. NOTEPAD.EXE, where all caps is a virus or malware).</p>\n\n<p>But Vista+ has security attributes which makes this obsolete.</p>\n\n<p>TortiousSVN just doesn't support passing this posix flag while making and renaming files.</p>\n"}, {'answer_id': 3391028, 'author': 'dewalla', 'author_id': 1504920, 'author_profile': 'https://Stackoverflow.com/users/1504920', 'pm_score': 0, 'selected': False, 'text': "<p>Nope you sure can't. SVN is case-sensitive unless you were to rewrite the code somehow ... it <em>is</em> open-source.</p>\n"}, {'answer_id': 51399368, 'author': 'Hugo González Castro', 'author_id': 10098670, 'author_profile': 'https://Stackoverflow.com/users/10098670', 'pm_score': 0, 'selected': False, 'text': '<p>We had a similar problem and I <strong>found a better solution</strong> than the ones exposed here, so I\'m sharing it now:</p>\n\n<ul>\n<li><p>For <strong>commits done manualy</strong>, now TortoiseSVN fixes the case of the file names automatically: it renames the local files to match the case of the versioned files (just by opening the commit window in that path), so there should be <strong>no problem</strong> with that.</p></li>\n<li><p>For <strong>automated commits</strong> you cannot use TortoiseSVN, as it requires you to manually confirm the commit (it opens the commit window with a specific message, but you still have to click ok). But if you directly use Subversion (svn) to make an automated commit, then you will have the case-sensitive issue on that commit, as Subversion is still case-sensitive...</p></li>\n</ul>\n\n<p>How to solve this for automated commits? Well, I tried a mixed approach: creating a batch file called <code>FixCaseSensitiveFileNames.bat</code> that you may call passing the path you want to fix before the commit, for example: <code>call FixCaseSensitiveFileNames.bat C:\\MyRepo</code>. The batch file opens TortoiseSVN for a manual commit, and that automatically fixes the file names, but then it closes the commit window after a predefined pause, so you can continue with the automated commit with the case-sensitive file names already fixed. The pause is emulated with a local ping, and you can change the duration by changing the <code>-n</code> argument, which is the number of tries. If you don\'t make a long enough pause, it exist the risk to close the TortoiseSVN window before it makes its magic fix. Here it is <strong>the code of the batch file</strong>:</p>\n\n<pre><code>@echo off\nREM *** This BAT uses TortoiseSVN to fix the case-sensitive names of the files in Subversion\nREM *** Call it before an automated commit. The Tortoise commit fixes this issue for manual commits,\nREM *** so the trick is opening the commit window and close it automatically after a pause (with ping).\nREM *** %1 = path to be fixed\n\nstart TortoiseProc.exe /command:commit /path:"%1"\nping localhost -n 10 &gt;nul\ntaskkill /im TortoiseProc.exe\n</code></pre>\n\n<p>This totally solved the issue for our automated daily build process. The only problem I see is a window will open for a few seconds, which was not a problem for our daily build, but if that is a problem for you there could be workarounds too...</p>\n'}, {'answer_id': 59732964, 'author': 'Álvaro González', 'author_id': 13508, 'author_profile': 'https://Stackoverflow.com/users/13508', 'pm_score': 1, 'selected': False, 'text': '<p>TortoiseSVN has a <a href="https://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-rename.html#tsvn-dug-rename-repair" rel="nofollow noreferrer">Repairing File Renames</a> feature. It requires manual intervention and it actually issues a file rename operation to be committed but nonetheless addresses current use case by keeping file history.</p>\n'}]
['https://Stackoverflow.com/questions/14582', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1339/']