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

RE: adding case-insensitive file duplicates on Windows

From: Tom McMillen <thomas.mcmillen_at_mppglobal.com>
Date: 2004-09-10 12:28:01 CEST

I have the script below installed and running...

(svn is on win32, perl is the cygwin version, so I've had to
change the svnlook path to be a cygwin path, and change all the
chomp lines to chomp; $_ =~s/^M//g; to get the script to work)

However, whilst this stops someone committing a file with a different case,
is there a way to get their working copy back to usable state?

If I try reverting the added file, and then updating the working copy I get
errors...

Can't copy 'C:/Sandbox/.svn/text-base/test.txt.svn-base' to
'C:/Sandbox/.svn/tmp.text-base/test.txt.svn-base.2.tmp': The system cannot find
the file specified.

(original file test.txt, added file was Test.txt)

Thanks.

> -----Original Message-----
> From: Martin Tomes [mailto:lists@tomes.org]
> Sent: 10 August 2004 10:17
> To: Erik Anderson
> Cc: users@subversion.tigris.org
> Subject: Re: adding case-insensitive file duplicates on Windows
>
>
> Erik Anderson wrote:
>
> > I realize and fully recognize that Subversion is primarily a
> linux-based versioning engine and that therefore operating
> systems that use a case-insensitive naming convention are going
> to have problems.
>
> If you put this hook script on your server it will prevent
> commits of files whose names only differ
> in case:
>
> http://svn.collab.net/repos/svn/trunk/contrib/hook-scripts/check-c
ase-insensitive.pl

-- 
Martin Tomes
echo 'martin at tomes x org x uk'\
  | sed -e 's/ x /\./g' -e 's/ at /@/'
The Subversion Wiki is at http://www.subversionary.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Sep 10 12:24:08 2004

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.