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

RE: Adding LAN support to Subversion - Clarification

From: Kopp David K <david.kopp_at_us.army.mil>
Date: 2003-10-27 20:30:53 CET

That is basically what I would like to do. However, I want to add some code
so that this only happens if the user types in lan:/// instead of file:///

Where is the code that looks at the URL and then determines which RA to use?


-----Original Message-----
From: Ben Collins-Sussman [mailto:sussman@collab.net]
Sent: Monday, October 27, 2003 1:22 PM
To: Kopp David K
Cc: 'dev@subversion.tigris.org'
Subject: Re: Adding LAN support to Subversion - Clarification

-- snip --

You mean "RA" layer (Repository Access).

Take a look at libsvn_ra_local, libsvn_ra_dav, libsvn_ra_svn. Those
are the three example implementations of the vtable in svn_ra.h.

Rather than write a whole new RA library, I imagine you want to simply
write a custom hack/patch against libsvn_ra_local's open() function.
Whenever someone tries to run RA->open(), you check for a lockfile, or
possibly create one. That will guarantee that only one person can
ever open the repository at a time.
Received on Mon Oct 27 20:39:54 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.