Prevent file casing problems in Subversion

By : Trumpi

We encountered a problem with using Subversion on Windows. A developer committed a file foo.Data.sql and later another developer committed a file called Naturally, this caused a problem on Windows clients (all clients are Windows in our environments) because files are case sensitive in Subversion but not in Windows.

We managed to resolve this problem by deleting one of the files directly in the repository, but I still have two questions:

  1. How is it possible for a developer to do this using a Windows client? Does he have an invalid working copy, or is there a bug in the client (TortoiseSVN)?
  2. How can we prevent changes like these from entering the repository (i.e. has anyone written a hook script that performs a sanity check for file casing issues)?
By : Trumpi


There is definitely a hook script that checks case sensitivity - Sourceforge have it as one of their options. A quick google turns up: and

The issue will have arisen on a windows platform if user 1 added and user 2 added foo.Data.sql before getting an update from user 1.

Hope that helps :)

A const field can only be initialized at the declaration of the field. A readonly field can be initialized either at the declaration or in a constructor.

By : Geka P

Read Only : Value can be changed through Ctor at runtime. But not through member Function

Constant : By defult static. Value cannot be changed from anywhere ( Ctor, Function, runtime etc no-where)

This video can help you solving your question :)
By: admin