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

Re: svn cleanup fails..

From: Ryan Schmidt <subversion-2008b_at_ryandesign.com>
Date: Wed, 4 Jun 2008 00:52:03 -0500

On Jun 3, 2008, at 23:11, Torgeir Veimo wrote:

> On 4 Jun 2008, at 13:32, Torgeir Veimo wrote:
>
>> On 4 Jun 2008, at 13:16, Karl Fogel wrote:
>>
>>> Torgeir Veimo writes:
>>>
>>>> netbeans managed to **** my SVN repository while doing a
>>>> refactoring. Now even svn cleanup doesn't work.
>>>
>>> I assume where you said "repository" you meant "working copy".
>>
>> Yes. Netbeans apparently has a bug that makes it remove files if
>> you try to change case of a file name using the refactoring tool.
>> I tried to save my current work in that folder by committing a few
>> files, then delete the folder and try an svn update to recreate
>> the file it had deleted.
>>
>>>> I tried removing the directory taglib, then do an svn update in the
>>>> parent directory, which then results in;
>>>>
>>>> svn: In directory 'taglib'
>>>> svn: Can't copy 'taglib/.svn/tmp/text-base/
>>>> PathNavigationTAG.java.svn-
>>>> base' to 'taglib/.svn/tmp/PathNavigationTAG.java.tmp.tmp':
>>>> Undefined
>>>> error: 0
>>>>
>>>> Then doing an svn cleanup results in;
>>>>
>>>> Macintosh:publishing torgeir$ svn cleanup
>>>> svn: In directory '.'
>>>> svn: Can't copy '.svn/tmp/text-base/LastPublishedTag.java.svn-
>>>> base' to
>>>> .svn/tmp/LastPublishedTag.java.tmp.tmp': Undefined error: 0
>>>>
>>>> Any ideas? Am using svn v 1.4.6 on a mac. The server runs svn
>>>> v1.4.4
>>>> on linux.
>
> I found a hint about the problem here: https://java-
> net.dev.java.net/issues/show_bug.cgi?id=437
>
> Apparently, SVN might have issues with file names that only differ
> in case, even on a case sensitive system.
>
> Doing a
>
> svn delete svn+ssh://...../publishing/taglib/FolderTreeTAG.java
> (and another file)
>
> and then deleting the taglibs directory locally, then doing an svn
> update . in the parent directory fixed it..

Glad you got it fixed. Sounds like you checked in a file whose name
differed only in case from an existing file. Checking that out on a
case-insensitive file system, like HFS+ which comes with Mac OS X
usually, won't work, and will result in error messages which aren't
necessarily intuitive.

You might want to install a pre-commit hook on your repository to
prevent such commits in the future. You could use this script:

http://svn.collab.net/repos/svn/trunk/contrib/hook-scripts/case-
insensitive.py

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-06-04 07:52:38 CEST

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.