ruby module for subversion?

S

Steve Kelem

Is there a module for ruby that will give access to subversion functions?

I'd like to:

1. Find out if a file is administered under subversion.
2. Find out if a file under subversion has a given property, e.g.,
svn:executable.
3. Be able to add/delete subversion properties for a file.
4. Add a file to subversion, i.e., administer it and check it in.

Thanks for any help you can give,
Steve Kelem
 
A

Andre Nathan

Is there a module for ruby that will give access to subversion functions?

The latest subversion (1.2.0) comes with subversion bindings for ruby,
which probably can do what you need. I couldn't find docs for it though
:\

HTH
Andre
 
J

Johan Sörensen

s?
=20
The latest subversion (1.2.0) comes with subversion bindings for ruby,
which probably can do what you need. I couldn't find docs for it though :=
\

The svn ruby bindings is still pretty new, but no, there doesn't seem
to be any (english) docs around, but having worked with the bindings a
bit for a sparetime project of mine they're fairly easy to use once
you get the initial grasp on them and get over the initial headaches
with pools and such..

Looking at the unit tests (the bindings are in the
SVN_SRC/subversion/bindings/swig/ruby dir) and perhaps even take a
peek at my stabs[1] on working with them to get the general idea.

[1]: http://collaboa.cocoa.se/trac/browser/trunk/lib/actionsubversion/lib/


--=20
http://johansorensen.com
http://theexciter.com
 
K

Kyle Heon

There's always the command line too, if that fits your needs.

Kyle Heon
(e-mail address removed)
 
J

Jim Morris

The Ruby bindings found in the SVN source dist do work, although a
little tricky
to build and install, and the coverage is not complete, eg
svn_client_status is not implemented.

I have posted the very bare start to a similar endevour using Ruby/DL,
so far it is more of
an example than useful, although it would be nice to see someone fill it
out a bit. It does however implement the status2 call.

See the ruby-talk thread with Subject "Accessing SVN through Ruby/DL"
 

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

Members online

Forum statistics

Threads
474,174
Messages
2,570,940
Members
47,486
Latest member
websterztechnologies01

Latest Threads

Top