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

Re: viability of subversion server on windows

From: Denis Gervalle <dgl_at_softec.st>
Date: 2004-11-24 10:37:02 CET

Ben Collins-Sussman wrote:

> On Nov 8, 2004, at 9:23 PM, Branko Čibej wrote:
>>> 2. If windows is an ok platform, I would want to implement
>>> extensions. As I
>>> use C# and ASP.NET is there a path you can suggest(I notice you have
>>> Perl
>>> and Python and Java bindings, would this be a matter of implementing
>>> the C#
>>> bindings - is there any plan of doing this, could I contribute? )
>>> that is
>>> most suited to this.
>> Several people have asked about C# bindings, but as far as I know
>> nobody is actually implementing them. It should be fairly easy,
>> though; we already use SWIG for Python and Perl, and SWIG does
>> support C#. There's also the SVNCPP wrapper, a C++ wrapper of the SVN
>> libraries used by RapirSVN (http://rapidsvn.tigris.org/), that you
>> could base your C# bindings on.
> Just ran across "SubversionSharp" today, dunno if it's usable yet:
> http://www.softec.st/ClrProjects/wiki/SubversionSharp
> I find it amusing that it claims to depend on "AprSharp". :-)

Sorry for answering so late.
And Yes, I have written SubversionSharp to be usable :-) It just need
more testing..., but until now, it have proved to be really stable for
usual operations.

It was initially developped under linux using Mono and we are mostly
using it in that environment. However, we have recently make it work
under windows. I should say that it is quite difficult for now to
prepare a svn_client-1.dll to make it work since SVN has currently no
dynamic linking solution for Windows. Moreover, we want it to link with
a dynamic version of APR. So, we have to rebuild the whole subversion
stuff. Changing in its project file, the way APR should be linked. For
that reason, We will probably provide a binary version of that DLL when
we will package our library. Definitively, It would be nicer if
Subversion libraries could be compiled into DLLs. Another annoying
problem under windows, is the also the Cdecl calling convention used by
SVN libraries, which require to hack a little our callback delegates to
make them work appropriatly (natively, under windows, C# delegate use
stdcall and there is no way in C# to change that).

Yes, it require AprSharp that is, as you have probably understand, a
wrapper over libapr.dll. AprSharp is also available on our site. It
provide an interresting type-safe AprArray that expose ICollection.
Regarding the use of SWIG to provide that binding, we have tried and
abandoned the solution quite quickly. It is not working and even if we
have managed for it to work, it would have provide an inefficient
solution. Our library is mainly more efficient because it does not
marshal subversion structures from unmanaged to managed code until you
really need it.

Waiting for more documentations, do not hesitate to mail me if you any
issue while using our libraries.



Denis Gervalle    
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Nov 24 10:39:23 2004

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.