ruby svn bindings and pools

J

Johan Sörensen

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
 
K

Kouhei Sutou

In <[email protected]>
"ruby svn bindings and pools" on Sat, 23 Apr 2005 01:05:13 +0900,
Johan Sörensen said:
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.
 
J

Johan Sörensen

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!
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top