Ruby svn bindings and pools

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

In <689059740504220904e11f27e@mail.gmail.com>
  "ruby svn bindings and pools" on Sat, 23 Apr 2005 01:05:13 +0900,

There's no docs on the ruby bindings (yet?)

Sorry.
There's only test codes and sample codes.

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?

The answer is everything.

# I want to hide pools from user in the future.

···

Johan Sörensen <johans@gmail.com> wrote:

--
kou

> 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

···

On 4/23/05, Kouhei Sutou <kou@cozmixng.org> wrote: