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

13 comments
Comment actions Permalink

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

0
Comment actions Permalink

Recently I had to do a major refactoring and seize the opportunity to rename all DAO clases to Dao.


You are working on Windows? First rename to a temporary class name, commit
and then rename to the final class name, commit.

Tom

0
Comment actions Permalink

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.

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

---
Original message URL:
http://www.jetbrains.net/devnet/message/5238910#5238910

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

I'm on a Mac..

0
Comment actions Permalink

Yann Cébron wrote:

I'm on a Mac..


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

0
Comment actions Permalink

The native Mac OS X file system (HFS+) can be configured for case sensitivity (which is off by default).

Randall Schulz

0
Comment actions Permalink

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.

0
Comment actions Permalink

The native Mac OS X file system (HFS+) can be configured for case sensitivity (which is off by default).


IIRC, this is possible when formatting, but later?

Tom

0
Comment actions Permalink

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.

0
Comment actions Permalink

Evidently there are tools to perform the conversion after-the-fact: http://mac.softpedia.com/get/System-Utilities/HFSConverter.shtml


RRS

0
Comment actions Permalink

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

0
Comment actions Permalink

nodje wrote:

Concerning HFS+ cas - sensitvity, has anyone experienced both? experienced the migration? any cons arguments around?
I can see only pros so far.

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

0
Comment actions Permalink

thanks a lot for sharing this Maarten!
useful piece of info

rgds
nodje

0

Please sign in to leave a comment.