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

Re: [PATCH] Make working copies read-only.

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2001-11-30 21:44:57 CET

Greg Hudson <ghudson@MIT.EDU> writes:
> Unless I'm terribly mistaken, we shouldn't be doing anything like "cp A
> B" when we move files from tmp/text-base to text-base. We should be
> unlinking the target and calling rename().
>
> If we have to do a copy instead of a rename for some reason (such as
> portability), then we should unlink the target first, if we know we
> might be trying to replace a non-writable file.

Is it necessary to unlink the dst before doing a rename()? That's not
crash-proof, though in our case it would probably be okay because "svn
cleanup" would fix it, and "svn cleanup" would be forced because the
wc would be in a locked state.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:50 2006

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.