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

Re: svn not atomic with file:/// access?

From: Andy Levy <andy.levy_at_gmail.com>
Date: Mon, 25 Feb 2008 16:13:26 -0500

On Mon, Feb 25, 2008 at 4:08 PM, Listman <listman_at_burble.net> wrote:
>
> hi, we have a number of users committing to a network appliance using
> the file:/// protocol on our local network. their local workspaces are
> also on the same network appliance.

Very, very bad idea. file:/// access is intended only for single-user,
local, testing/debugging usage. Over a network, and with multiple
users, is a very quick & easy route to repository corruption or
complete loss.

> i have 2 questions:
>
> 1) would svn:/// be faster than file:///

No (it'll be marginally slower), but it'd be safer. And (IMO, anyway)
with a source control system, safety trumps speed.

> 2) do i need to be using svn:/// to ensure that checkins are atomic?
> is there a potential for repository corruption with file:/// in this
> situation?

file:/// should be atomic just like svn:// - but when you're using it
the way you are, weird things can happen.

> i don't care about authentication (i have another means of controlling
> that).

But you should care about it. With file:///, one errant keypress can
delete or corrupt your whole repository; all users require full,
unrestricted access to the repository DB in this mode.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-02-25 22:13:48 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.