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

URL case-sensitivity problems under Windows

From: Dmitry Bely <dbely_at_mail.ru>
Date: 2004-03-30 07:34:28 CEST

Some SVN commands allow any case in URLs (e.g. merge), while some other
command do not (e.g. commit). IMHO it leads to unobvious errors. Let's
consider the following scenario:

[--- test.bat ---]
mkdir tmpdir
cd tmpdir
mkdir trunk
mkdir branch
svnadmin create c:/work/svnrepos/test-url-case
svn import . file:///c:/work/svnrepos/test-url-case -m "Initial repository layout"
cd ..
rmdir /s /q tmpdir
svn co file:///c:/work/svnrepos/test-url-case/trunk trunk
cd trunk
echo 1 > file1
svn add file1
svn ci -m "trunk1"
cd ..
svn copy file:///c:/work/svnrepos/test-url-case/trunk file:///c:/work/svnrepos/test-url-case/branch -m "create branch1"
svn co file:///c:/work/svnrepos/test-url-case/branch branch
cd branch
echo 2 > file2
svn add file2
svn ci -m "branch1"
cd ..\trunk
rem ***********************************************
rem Note that c:/Work is written in different case!
rem ***********************************************
svn merge -r 3:4 file:///c:/Work/svnrepos/test-url-case/branch
svn ci -m "merge"
[--- end of test ---]

it fails with:

C:\Work\test-url-case\trunk>svn ci -m "merge"
Adding file2
svn: Commit failed (details follow):
svn: Source url '/trunk/file2' is from different repository

I think it should be fixed some way - either all commands should ignore
URL case or all should check it.

- Dmitry Bely

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Mar 30 07:37:01 2004

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

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