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

Re: Case Insensitive File Names?

From: Ryan Schmidt <subversion-2008a_at_ryandesign.com>
Date: Tue, 19 Feb 2008 00:21:19 -0600

On Feb 18, 2008, at 15:51, Menachem Bazian wrote:

> At the risk of insulting all your *nix purists out there, I wanted
> to ask for a possible new feature for SVN. It would be great if we
> could have a switch that would ignore case in file names.

I wouldn't hold my breath for that feature to be implemented. There
are many more important things that need to be done to Subversion
that will take priority.

> As a backup plan, can a hook be created so that when a file is
> updated/added/watever that it converts the filename to a standard
> format (e.g., all lower case)?

You cannot modify a transaction in a hook. However, you could prevent
the transaction from becoming a revision based on any rules you want
to define, e.g. filename has no uppercase characters. If you find a
file being committed that has uppercase characters in the filename,
print a message to stderr telling the user about your naming
convention, then exit with a nonzero exit code to prevent the commit.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-02-19 07:21:46 CET

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.