[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

ruby svn bindings and pools

Johan Sörensen

4/22/2005 4:05:00 PM

Hi, anyone else had a chance to play around with the subversion
swig-rb bindings yet?

I'm having some issues wrapping my head around the hows and whys
regarding usage of pools and I think thats the reason why I'm
experiencing some segfaults when I'm playing around with it.

There's no docs on the ruby bindings (yet?), even the python ones
seems to be under-documented and google didn't really clarify the
whole svn pool thing to me.

Do I need to wrap everything I do towards the repos in a new pool, eg like this?

Svn::Core::Pool.new do |pool|
# do stuff, like opening it:
@repos = Svn::Repos.open(repos_path, pool)
end

Or is it only needed for the initial connection?

Perhaps I'm playing around with this too soon, but here's to hoping
someone is willing to spread some light in my darkness.

Cheers,
Johan



2 Answers

Kouhei Sutou

4/23/2005 12:50:00 PM

0

Johan Sörensen

4/23/2005 2:56:00 PM

0

On 4/23/05, Kouhei Sutou <kou@cozmixng.org> wrote:
> > There's no docs on the ruby bindings (yet?)
>
> Sorry.
> There's only test codes and sample codes.

Thats ok, I understand it is still in the early stages. Perhaps you'd
be willing to accept some sort of documentation from me once I get a
bit more comfortable with using the bindings, in case you won't be
doing any (english) docs?

Thanks for your work on the ruby bindings by the way!

> > Do I need to wrap everything I do towards the repos in a new pool
> > Or is it only needed for the initial connection?
> The answer is everything.
>
> # I want to hide pools from user in the future.

Thanks, that helps.
And I agree about hiding the pools, right now my idea is to write some
sort of wrappers/helpers for the swig-rb, just to make things a little
easier for myself..

Regards,
Johan