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

Re: Subversion and NetWare - Rename issue.

From: Branko Čibej <brane_at_xbc.nu>
Date: 2005-11-06 15:11:34 CET

NormW wrote:
> Greetings All,
> Currently have 1.2.3 SVN built and loaded on a NetWare server. Using
> the latest TortoiseSVN client, if I try to 'import' a directory on my
> W2K box to a repos on the NetWare box, I get a number of 'Adding'
> messages, followed at the end by:
>
> Error Can't move '<repos>\db\current.tmp' to
> Error '<repos>\db\current': File Exists
>
> A check of io.c [svn_io_file_rename()], where the message is found,
> doesn't seem to allow for removing an existing file of the same
> (final) name before the rename, so I'm wondering what I'm missing, or
> do other OS's handle the removal automatically?
We let APR do our renaming for us, so if APR's rename semantics are
different on Netware than on other systems, that could be an APR bug.

The Windows implementation of apr_file_rename does make sure that the
target file is replaced (either by using MoveFileEx, or by explicitly
deleting the target on Win9x which doesn't have that function). We fixed
this in APR specifically because Subversion relies on atomic renames,
and we had similar problems on Windows before the fix. Unfortunately,
you seem to be the first person to try SVN on Netware; so, you'll have
to prod the APR folks to fix the Netware implementation of
apr_file_rename...

-- Brane

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Nov 6 15:09:54 2005

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.