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

Re: svn_load_dirs trouble with file renames

From: Ryan Schmidt <subversion-2009d_at_ryandesign.com>
Date: Tue, 1 Dec 2009 18:50:25 -0600

On Dec 1, 2009, at 18:40, Rush Manbert wrote:

> I'm trying to use svn_load_dirs.pl to import the latest Qt release into my vendor source tree. I'm doing this using svn 1.5.4 on a Mac running OS X 10.6.2.
>
> One file in the distribution has had its name changed, but it is only a case change. I found the "from" and "to" filenames in the list the script displayed, and I entered their line indices, as shown. I then got this error:
>
> Enter two indexes for each column to rename, (R)elist, or (F)inish: 115 165
>
> Renaming src/3rdparty/webkit/WebCore/css/mediaControlsQT.css to src/3rdparty/webkit/WebCore/css/mediaControlsQt.css.
> Running /usr/local/bin/svn mv src/3rdparty/webkit/WebCore/css/mediaControlsQT.css src/3rdparty/webkit/WebCore/css/mediaControlsQt.css
> /Users/rmanbert/bin/svn_load_dirs.pl: /usr/local/bin/svn mv src/3rdparty/webkit/WebCore/css/mediaControlsQT.css src/3rdparty/webkit/WebCore/css/mediaControlsQt.css failed with this output:
> svn: Path 'src/3rdparty/webkit/WebCore/css/mediaControlsQt.css' is not a directory
> Press return to quit and clean up svn working directory:
>
> It's certainly true that 'src/3rdparty/webkit/WebCore/css/mediaControlsQt.css' is not a directory, but I thought this was attempting a file name change in the working directory.
>
> I have no idea how to proceed now. Are there any suggestions?

The problem is that your disk is case-insensitive; you cannot do a case-only rename in a working copy on a case-insensitive disk.

I recommend you make a case-sensitive disk image, using Disk Copy. Check out your working copy on that disk image. Tell svn_load_dirs to use that working copy for the import instead of creating a new one. Once the import is done, you can unmount and delete the disk image again.

Or, if it really is just a single file whose case has changed, use URLs to rename the file directly in your repo. Then do svn_load_dirs again.

You may also need to be careful when updating any other existing working copies. See the FAQ:

http://subversion.tigris.org/faq.html#case-change

Unfortunately, case-only renames are problematic for Subversion on case-insensitive filesystems.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2426157

Please start new threads on the <users_at_subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <users-subscribe_at_subversion.apache.org>.
Received on 2009-12-02 01:51:31 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.