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

Re: Using subversion on a LAN

From: Greg Stein <gstein_at_lyra.org>
Date: 2003-10-30 21:42:12 CET

On Fri, Oct 24, 2003 at 08:15:51AM -0500, Kopp David K wrote:
>...
> 2) svn notices that the URL protocol is lan, (or nfs or whatever
> bogus protocol you like). It determines that K:\logpars\subversion\powerLOGJ
> is the directory holding the Subversion repository, so it checks to see if a
> file (let's call it lan.lock) exists in that directory. If it does, it

David,

I just realized something, which hasn't been noted before. Subversion
*already* has a lock around the access to the repository. Nominally, we
use it to lock out users while a recovery is being performed (altho that
isn't working as designed right now). But you should be able to leverage
that lock for your own needs.

Look in libsvn_repos/repos.c::get_repos() and how it interacts with the
lockfile.

You might be able to significantly reduce your patch size and its
"intrusion" into the Subversion control flow.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 30 21:43:20 2003

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.