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

Re: Bug in svn on MacOS X 10.4 with ._ files on UFS

From: Ryan Schmidt <subversion-2005_at_ryandesign.com>
Date: 2005-06-01 11:18:21 CEST

On 01.06.2005, at 02:04, Geoffrey Alan Washburn wrote:

> Okay, I'll give it another try. On a partition formatted as UFS
>
> % cd /tmp
> % svnadmin create foo
> % mkdir bar
> % cd bar
> % svn co file:///tmp/foo
> Checked out revision 0.
> % touch baz
> % xattr --set qux quux baz
> % svn add baz ._baz
> A (bin) ._baz
> A baz
> % svn commit -m "quuux"
> Adding (bin) ._baz
> Adding baz
> Transmitting file data ..
> Commited revision 1.
> % cd /tmp
> % mkdir blorf
> % cd blorf
> % svn co file:///tmp/foo
> Checked out revision 1.
> % svn update
> svn: Can't copy '.svn/text-base/._baz.svn-base' to
> '.svn/tmp/text-base/._baz.svn-base.tmp': No such file or directory
> % ls -la .svn/text-base
> drwxr-xr-x 2 geoffw wheel 1024 May 31 19:57 ./
> drwxr-xr-x 7 geoffw wheel 1024 May 31 19:57 ../
> -r--r--r-- 1 geoffw wheel 0 May 32 19:56 baz.svn-base
> %
>
> So what exactly is the problem here? Should I file this as a bug?

You mentioned earlier this was on 10.4, which I believe is critical.

My 10.4 DVD hasn't arrived yet, but I've read that the shell commands
"rm", "cp" and so on have been enhanced in 10.4 so that they know how
to deal with these ._ files. So if you have baz and ._baz and you rm
baz, then ._baz will be removed as well. I'm wondering if maybe it's
not just the shell commands that have been enhanced, but whatever
system library those shell commands use, and thus also the system
library that Subversion would end up using. This would mean that as
soon as Subversion tries to move baz from text-base, ._baz would be
moved at the same time, and when a moment later Subversion tries to
separately move ._baz, it doesn't work because it's already gone. You
could check whether this is so by seeing whether the ._baz file exists
in /tmp/blorf. If it is, then Subversion may simply need to filter ._
files out of its list of things to move on 10.4+ and let the OS handle
it.

To try to narrow down the problem, I'd recommend trying this on an HFS+
volume on 10.4, and on a UFS volume on 10.3. I can possibly test the
latter in a day or two if I can find a spare drive.

I was pretty sure I'd heard from others on this list that they're using
Subversion on 10.4 without problems. But maybe they're not using any
files with a ._ component? or maybe they're not using UFS?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jun 1 11:20:23 2005

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