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

RE: CaSe insensetive OS not handled well

From: James FitzGibbon <jfitzgibbon_at_primustel.ca>
Date: 2005-08-19 21:38:33 CEST

There is already a hook to do this in the contrib directory:

http://svn.collab.net/viewcvs/svn/trunk/contrib/hook-scripts/check-case-inse
nsitive.pl?rev=15377&view=log

The description is as follows:

--START--

Pre-commit hook that stops case insensitive collisions.

This script can be called from a pre-commit hook on either Windows or
a Unix like operating system. It implements the checks required to
ensure that the repository acts in a way which is compatible with a
case insensitive file system.

When a file is added this script checks the file tree in the
repository for files which would be the same name on a case
insensitive file system and rejects the commit if there is a match.
---END---

The thing that is funny to me is that it's the same description this hook
script has
had every time this issue rears it's head on the list. I've only been using
svn for
about 8 months, and I swear this is the 5th distinct time I've referred to
this hook
script.

Perhaps this should be a "how-to" on the website?

-----Original Message-----
From: Martin Ellis [mailto:m.a.ellis@ncl.ac.uk]
Sent: Friday, August 19, 2005 3:14 PM
To: users@subversion.tigris.org
Cc: David Weintraub; Janulewicz, Matthew
Subject: Re: CaSe insensetive OS not handled well

On Friday 19 Aug 2005 19:55, David Weintraub wrote:
> I haven't met a VCS which works on both Windows and Unix where case
> sensitivity/case insensitivity isn't a problem. A lot of time, it
> merely depends upon the back end repository.
>
> I have a Subversion hook that can be used to ban the creation of files
> with certain regular expressions in their names. Maybe simply ban all
> uppercase letters in a repository that is used by both Unix and
> Windows? That is, you can have a file named foo.c, but not Foo.c or
> FOO.C. Will this cause more problems than it will solve?

Perhaps the Darcs way of refusing to add/change a file name or directory
where the new name differs only in case to an existing file would be a
little
less, er... heavy handed? :o)

(It also has --case-ok to force 'bad' behaviour)

Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.12/77 - Release Date: 8/18/2005
 
-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.12/77 - Release Date: 8/18/2005
 
-- 
----------------------------------------------------------------------------
This electronic message contains information from Primus Telecommunications
Canada Inc. ("PRIMUS") , which may be legally privileged and confidential.
The information is intended to be for the use of the individual(s) or entity
named above. If you are not the intended recipient, be aware that any
disclosure, copying, distribution or use of the contents of this information
is prohibited. If you have received this electronic message in error, please
notify us by telephone or e-mail (to the number or address above)
immediately. Any views, opinions or advice expressed in this electronic
message are not necessarily the views, opinions or advice of PRIMUS.
It is the responsibility of the recipient to ensure that
any attachments are virus free and PRIMUS bears no responsibility
for any loss or damage arising in any way from the use
thereof.The term "PRIMUS" includes its affiliates.
----------------------------------------------------------------------------
Pour la version en français de ce message, veuillez voir
 http://www.primustel.ca/fr/legal/cs.htm
----------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Aug 19 21:42:44 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.