From: Jeff Rose Date: 2006-06-16T17:11:31+09:00 Subject: Re: best way for ruby to query subversion Toby Catlin wrote: > Hello everybody, > > I am writing a script to list files that are in a subversion repository. > I am only spiking at the moment but am having trouble. > > Basically i want to execute the svn command "svn list > svn://ci.firstconsult.com/fc_codebase" and display what is returned. I > have looked at using system() but this simply returns true or false > upon execution. > > As you can tell i am pretty new to the ruby game but i am sure there is > a simple elegant way of doing this. > > thanks for any help > > toby > If you are just listing it might not be worth using the bindings, but I think newer versions of subversion come with ruby bindings. (Although you might need to compile them if it isn't part of the regular build...) That will give you a lot more flexibility. For info on getting the bindings setup or to see example code checkout the collaboa project. http://collaboa.org -Jeff