Svn Integration with Rails application

Hi

I am trying to implement a svn browser type of function in my
application.I have installed the subversion bindings for Ruby and I am
following
http://www.oneofthewolves.com/2007/03/06/ruby-subversion-bindings-finally-some-documentation/
this site for accessing the subversion repository from my application.

I was testing the steps given in this site using"irb"

I did
require “svn/repos”
Svn::Repos.open(path to a repository which is in my local system")

Everything is working fine

But when i try to open the same repository through and try to access it
like

Svn::Repos.open(“http://localhost/svn/my_repo”)

I get an error saying,
Svn::Error::SvnError:
/build/buildd/subversion-1.5.1dfsg1/subversion/libsvn_subr/io.c:2626
Can’t open file ‘http://localhost/svn/my_repo/format’: No such file or
directory
from /usr/lib/ruby/1.8/svn/util.rb:86:in svn_repos_open' from /usr/lib/ruby/1.8/svn/util.rb:86:inopen’
from /usr/lib/ruby/1.8/svn/info.rb:72:in setup' from /usr/lib/ruby/1.8/svn/info.rb:34:ininitialize’
from (irb):3:in `new’
from (irb):

I am able to checkout ,commit and do all sort of svn related things
using svn command on the shell prompt on this
http://localhost/svn/my_repo

Kindly Help me in solving this issue
Thanks in Advance

Charanya N. wrote:

Hi

I am trying to implement a svn browser type of function in my
application.I have installed the subversion bindings for Ruby and I am
following
http://www.oneofthewolves.com/2007/03/06/ruby-subversion-bindings-finally-some-documentation/
this site for accessing the subversion repository from my application.

I was testing the steps given in this site using"irb"

I did
require “svn/repos”
Svn::Repos.open(path to a repository which is in my local system")

Everything is working fine

But when i try to open the same repository through and try to access it
like

Svn::Repos.open(“http://localhost/svn/my_repo”)

I get an error saying,
Svn::Error::SvnError:
/build/buildd/subversion-1.5.1dfsg1/subversion/libsvn_subr/io.c:2626
Can’t open file ‘http://localhost/svn/my_repo/format’: No such file or
directory
from /usr/lib/ruby/1.8/svn/util.rb:86:in svn_repos_open' from /usr/lib/ruby/1.8/svn/util.rb:86:inopen’
from /usr/lib/ruby/1.8/svn/info.rb:72:in setup' from /usr/lib/ruby/1.8/svn/info.rb:34:ininitialize’
from (irb):3:in `new’
from (irb):

I am able to checkout ,commit and do all sort of svn related things
using svn command on the shell prompt on this
http://localhost/svn/my_repo

Kindly Help me in solving this issue
Thanks in Advance
Hi
It seems the repo url is wrong

is the repo is created under the directory /svn/myrepo if so
use svn://svn/myrepo
if its /myrepo
use svn://myrepo
according to the path you used on creation of repo using the ‘svn’
command.
For using http for svn repo you should set up apache for that.

Hope this works, I assumed you simply setup a SVN server without Apache.

Regards.
Anoop

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs