Letter case change in file name => Subversion hell
Hi,
I've noticed this problem for a while already but it was manageable.
Recently I had to do a major refactoring and seize the opportunity to rename all *DAO* clases to *Dao*.
I had so many problem, it was incredibly painful for everyone in the team.
What happend in detail is:
- I modify the name of the class with IDEA.
- someone commits a modification on this file
- I commit my changes
and this is the mess (big time)
If you work with SVN command line you have to manage this yourself, alright.
Wouldn't it be possible for IDEA's SVN layer to handle this better?
regards
请先登录再写评论。
welcome to the club.. it seems SVNKit/IDEA SVN integration suffers from major regressions once every month or so :-((
http://www.jetbrains.net/jira/browse/IDEA-23019
You are working on Windows? First rename to a temporary class name, commit
and then rename to the final class name, commit.
Tom
Hello Yann,
Why do you think it's a regression? Case-only renames have always been problematic
with Subversion under Windows, and we never had any smart solutions to deal
with that.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
I'm on a Mac..
Yann Cébron wrote:
Mac files systems are NOT case sensitive by default. (try it for
yourself - I did) You have to use the same method as on Windows:
DAO -> temporaryFileName -> Dao
Donald
The native Mac OS X file system (HFS+) can be configured for case sensitivity (which is off by default).
Randall Schulz
Hello Donald,
OK, point taken. Well, then I would like IDEA to warn me before attempting such an operation in the OS/VCS-environments known to cause problems.
IIRC, this is possible when formatting, but later?
Tom
The problem is not the OS, but the file system. Normal Unix/Linux file
systems are case-sensitive, but of course you can mount a FAT or NTFS file
system or a Windows network share.
Evidently there are tools to perform the conversion after-the-fact: http://mac.softpedia.com/get/System-Utilities/HFSConverter.shtml
RRS
Point taken too.
thanks, that's a simple efficient workaround.
Concerning HFS+ cas - sensitvity, has anyone experienced both? experienced the migration? any cons arguments around?
I can see only pros so far.
nodje
I've tried it. Once.
What I found is that there are quite a few native applications that suddenly stop working because they're depending on the case insensitivity to find their resource files.
I know that's sloppy programming, but it's annoying enough that I keep my main system case-insensitive.
What you can do is create a case-sensitive disk image and put your source on there.
That has an additional advantage in that you can also encrypt it if you have sensitive source code on a laptop or home system.
Maarten
thanks a lot for sharing this Maarten!
useful piece of info
rgds
nodje