[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Can't create project; getting errors

From: B. Smith-Mannschott <bsmith.occs_at_gmail.com>
Date: Sun, 16 Aug 2009 21:32:29 +0200

On Sun, Aug 16, 2009 at 13:15, Milan Dinić<liste_at_srpski.biz> wrote:
> Hello
>
> I'm new to Subversion. On my managed VPS, running on CentOS, Apache 2.2.11
> and cPanel I got installed SVN. Then I wanted to create a repository as per
> guides I read on web.
>
> I created directory svn in /home/user/public_html via mkdir command, then in
> that directory I run
> svnadmin create repos
> chown -R apache.apache repos
> service httpd restart
>
> In directory repos there are several directories now (conf, db, format...).
> After that I run command to create a project inside. Since I found two
> different examples I used them both, but in both cases I got errors.
>
> First
> svn mkdir project
> but got error
> svn: '.' is not a working copy

You've confused the concepts of *working copy* and *repository*.
Working copy is where you make changes (e.g. using svn mkdir). The
repository is where those changes get stored when you say "svn
commit". You just tried to treat your repository as if it were a
woking copy. Which, it isn't.

more here: http://svnbook.red-bean.com/

> Then I created new directory in /home/user/public_html called project with
> subdirectories trunk, branches and tag and run command
> svn import /home/user/public_html/project
> file:///home/user/public_html/svn/repos/project -m "Initial repository
> layout"
> but got error:
> svn: Unable to open an ra_local session to URL
> svn: Unable to open repository
> 'file:///home/user/public_html/svn/repos/project'
> svn: Expected FS format '2'; found format '4'

You're using two different versions of subversion. Don't do that.
You've created the repository with a 1.6.x version of svnadmin and now
you're trying to read it with a 1.4.x version of svn. That can't work.
Make sure the svn command is also version 1.6.x.

> I spent a lot of time googling without success, so I'm asking here how to
> solve this? What I want is to create several projects inside repository so
> that I could store my internal code.
>
> Thanks in advance

// ben

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2384108

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-08-16 21:33:18 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.