[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Bad bug in the Windows Client? (Case issue - duplicate files)

From: Scott Palmer <scott.palmer_at_2connected.org>
Date: 2005-06-07 20:23:47 CEST

On Jun 7, 2005, at 1:53 PM, Brad wrote:

> I have encountered a severe problem with subversion in windowsXP.
> I believe a user copied over a file called temp.JPG that they
> wanted to add to subversion, however another file, temp.jpg already
> existed. Windows overwrote the old one, subversion thought it was a
> new file and allowed the user to add it. Once the file was committed,
> It appears that users can commit files with the same names in
> different "cases". Linux handles this just fine, but windowsXP does
> not. Currently any user that tries to checkout from the repository
> in windows will get an error and cannot proceed. Even once I fix
> this, around 2 dozen revisions will already be "un-checkout-able"
> for them.
> Shouldn't subversion have the ability to prevent this?

Yes, it should.

> Does it already?

No, it doesn't - at least not out of the box.

> Do I need to create a hook?


> I need a way to prevent hundreds of users from doing this, many of
> which are not computer literate. Any ideas?

Use a pre-commit hook that rejects commits that will result in files
in the repository that only differ by case.

Received on Tue Jun 7 20:27:58 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.