[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: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2003-10-27 20:22:26 CET

Kopp David K <david.kopp@us.army.mil> writes:

> Ben,
>
> You are absolutely correct. Now please come to my workplace (Bldg 5307,
> Redstone Arsenal, Huntsville AL) and beat that into the Network Nazis who
> run the place.

Ahhhh.... right, you're THAT guy. :-)

> Thus, I am attempting to reinvent the wheel.
>
> To get back to my original question, how does one link a new file access
> layer into Subverion?

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.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Oct 27 20:25:33 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.