You are not logged in.

#1 2008-11-05 12:44:57

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Setting up svn://localhost (svnserve) [SOLVED]

Hi,

I've got no experience with Subversion. All I want for now is to set up a local Subversion repository, as required by Eric tutorial. There's no Wiki article about configuring svnserve; I tried to follow a short guide here.

Here's what I managed to do:

(1) Create a repository:
$ pwd
/home/user/svn/repos
$ svnadmin create LogParser
$ cd LogParser
$ ls
README.txt conf db format hooks locks

Then I edited the repo config files in the /home/user/svn/repos/LogParser/conf directory, as here; nothing very special, or so it looks like smile . after that,

# /etc/rc.d/svnserve start
:: Starting svnserve                    [DONE]

Eric IDE says, when I try to use Subversion:

svn: No repository found in 'svn://localhost'

I've no idea what to do next. Any suggestions?

Last edited by Llama (2008-11-06 14:23:34)

Offline

#2 2008-11-05 13:00:30

Garns
Member
Registered: 2008-05-28
Posts: 239

Re: Setting up svn://localhost (svnserve) [SOLVED]

I think you have to start svnserve with the -r option to tell it where the repository root is located.

If you just want to play around and your repository is located in the local filesystem you can access it there:

file:///home/user/svn/repos/logparser

Last edited by Garns (2008-11-05 13:01:01)

Offline

#3 2008-11-05 13:18:41

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: Setting up svn://localhost (svnserve) [SOLVED]

I think you have to start svnserve with the -r option to tell it where the repository root is located.

I used to think so too! But as soon as I try options, it says:

# /etc/rc.d/svnserve -d -r ...
usage: /etc/rc.d/svnserve start/stop/restart
#

That's where I got stuck smile .

Offline

#4 2008-11-05 15:02:59

Denacke
Member
Registered: 2008-04-09
Posts: 106

Re: Setting up svn://localhost (svnserve) [SOLVED]

Offline

#5 2008-11-05 16:05:14

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: Setting up svn://localhost (svnserve) [SOLVED]

This Wiki article is about svn+apache; I just want to start svnserve correctly.

Offline

#6 2008-11-05 18:31:01

G_Syme
Member
Registered: 2007-01-04
Posts: 83

Re: Setting up svn://localhost (svnserve) [SOLVED]

Have you tried the method that Garns has suggested? As he has mentioned before, you can access a local repository via the file:// protocol.
AFAICT svn should do the rest then.


The courageous enter dark caves alone.
The clever send in the courageous first.
The cleverest wait behind the clever.

Offline

#7 2008-11-05 18:51:37

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: Setting up svn://localhost (svnserve) [SOLVED]

That is, you suggest using file:// protocol, instead of svn:// ? At least, no errors, though I'd wish I understood more... smile

Offline

#8 2008-11-05 19:58:33

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: Setting up svn://localhost (svnserve) [SOLVED]

Take a look at /etc/conf.d/svnserve

Offline

#9 2008-11-05 21:47:15

G_Syme
Member
Registered: 2007-01-04
Posts: 83

Re: Setting up svn://localhost (svnserve) [SOLVED]

Llama wrote:

That is, you suggest using file:// protocol, instead of svn:// ? At least, no errors, though I'd wish I understood more... smile

Glad that it seems to work.
Those kinds of wishes are our favorites to fulfill. smile

A great start is ~the~ SVN book. It is well written, and you can really learn from it. The part about SVN Repository URLs is what you are looking for at the moment (hint: also take a look at the table there).


The courageous enter dark caves alone.
The clever send in the courageous first.
The cleverest wait behind the clever.

Offline

#10 2008-11-06 12:32:48

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: Setting up svn://localhost (svnserve) [SOLVED]

Ramses de Norre wrote:

Take a look at /etc/conf.d/svnserve

I did take a look at /etc/conf.d/svnserve.

Here's the exact sequence of my actions:

Editing /etc/conf.d/svnserve:

#
# Parameters to be passed to svnserve
#
#SVNSERVE_ARGS="-r /path/to/some/repos"
SVNSERVE_ARGS="-r /home/alexey/svn/repos"

#SVNSERVE_USER="svn"

$ mkdir -p /home/alexey/svn/repos
$ cd /home/alexey/svn/repos
$ svnadmin create logparser
$ ls
logparser
# /etc/rc.d/svnserve start
:: Starting svnserve               [DONE]
$ svn checkout svn://localhost/
svn: No repository found in 'svn://localhost'



I also tried

SVNSERVE_ARGS="-d -r /home/alexey/svn/repos"

and checkout from root; no difference.


Any suggestions? There's all but nothing on the Web on this particular subject; there are very few references to gentoo-wiki, but the Wiki is down! mad . Help, please! smile

Offline

#11 2008-11-06 13:27:11

Garns
Member
Registered: 2008-05-28
Posts: 239

Re: Setting up svn://localhost (svnserve) [SOLVED]

svn://localhost points to /home/alexey/repos which isn't a repo

try

svn://localhost/logparser

Offline

#12 2008-11-06 14:22:18

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: Setting up svn://localhost (svnserve) [SOLVED]

That's it! Thanks!

Offline

Board footer

Powered by FluxBB