Changing Filename Case with TortoiseSVN on Windows

Brad Turner picture Brad Turner · Oct 6, 2012 · Viewed 9k times · Source

I've been working on a development project using a Windows machine as a test server. Eventually, I'd like the "live" version to end up on a Linux machine. While trying to test on the Linux machine, it became apparent that I needed to change the case of several file names as Windows was case insensitive but Linux wasn't. When I changed the file name case in Windows, TortoiseSVN recognized that the file had changed and marked my folders appropriately. However, when I tried to commit my changes, not only did TortoiseSVN tell me that no changes had been made, but it had actually reverted all of the file name changes I had made back to their original case.

My question is, is there a simple way to alter the file name case from a Windows PC and have the changes appear in my repository? I'd like to avoid any kind of delete, commit, replace, commit scenario to keep my commits tidy if possible. Thanks!

Answer

pmod picture pmod · Oct 6, 2012

Use Rename option in Tortoise SVN from popup menu. See details here ("Moving files and folders" chapter).

When you changed the case of several file names, in other words you changed file names - they have become out of version control - that's why SVN client noticed that files that was under version control had disappeared (apparently, that happened because SVN client wasn't informed properly).

If you happened to be in this situation when IDE or you changed the case accidently - there is special menu option Repair move which appears when you select both files that are shown as "missing" and "non-versioned". Check this.