tags:

views:

159

answers:

1

Hi

I discovered an issue today regarding Subversion support for file name's case sensitivity.

I committed a class named 'ClassOne.file'. Another person committed another file, 'Classone.file'. Both files are exactly the same except the file name.

When I do SVN update, it says error, "unable to add, the file already exists". I noticed that in SVN respository, both files exist, but I cannot update my local copy. It halts there.

What I do is delete one of them and only then the SVN update resumes as usual. The SVN server is running on Linux, but our PC are running windows.

My questions:

  • Is this a standard configuration in SVN?
  • How to avoid this kind of error (other than enforcing everybody to use the same file naming convention)?

Advanced thanks for your kind help!

+6  A: 

http://subversion.tigris.org/tools_contrib.html#case_insensitive_py

Exactly what you need :)

Just dump that in your

/svnroot/<repos>/hooks/pre-commit

file, and BAM, problem will never repeat.

In response to comment

You have to edit the hooks for your repository; Working Copies don't have hooks. Locate your repository on your filesystem, then under a folder called "hooks" you will see a file called "pre-commit.tmpl" just rename that to "pre-commit" and edit it by adding in the code found above :)

nlaq
Grrr, 2 seconds late :-)...
MartinStettner
Thanks! How do I do this within Eclipse? I can't find any menu / option for setting the hooks.
uuɐɯǝʃǝs