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

Re: Problems in first import to svn repository.

From: Eli Hadad <eli.hadad_at_gmail.com>
Date: Sat, 12 Jul 2008 07:30:38 +0300

Hi Ryan,

Thanks for your reply.
The first problem has been solved with your suggestion, yet I still get the
same error on the second issue.

Just for the protocol I am using subversion 1.4.6

After creating the repository /Store/SVN-REPOs/myProject and changing the
permission to apache.
and configuring httpd with the following:

LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so

<Location /svn>
   DAV svn
   SVNParentPath /Store/SVN-REPOs
   SVNListParentPath on

I was able to browse it with http://home-linux/svn/myProject

Now trying to create the directory before importing into it using:

svn mkdir http://home-linux/svn/myProject -m "Creating root directory of my

I got the following:
svn: OPTIONS request failed on '/svn'
svn: OPTIONS of '/svn': 301 Moved Permanently (http://home-linux)

looked for that error, and saw some posts related to cases where the
repository is under the http document root, which is the the case here.
I thought maybe the directory already exist after creating the repository
(Store/SVN-REPOs/myProject) and tried to create trunk directory under it
Got the following error:
svn: applying log message to
/svn/myProject/!svn/wbl/bfd96850-281c-4c8a-af92-866d6b36db11/0: 501 Method
Not Implemented (http://home-linux)

I am probably missing something here.


On Sat, Jul 12, 2008 at 2:24 AM, Ryan Schmidt <
subversion-2008c_at_ryandesign.com> wrote:

> On Jul 11, 2008, at 17:34, Eli Hadad wrote:
> I am trying to setup SVN repository on my Fedora9 machine.
>> Tried to find some answers to my problems using google with no success, I
>> hope you could help me.
>> I simply followed the instruction in the red book and other tutorials and
>> have the following two problems.
>> First in subversion.conf which is one of the httpd config files I have the
>> following configuration:
>> LoadModule dav_svn_module modules/mod_dav_svn.so
>> LoadModule authz_svn_module modules/mod_authz_svn.so
>> <Location /svn>
>> DAV svn
>> SVNParentPath /Store/SVN-REPOs/
>> </Location>
>> I created the directory /Store/SVN-REPOs
>> Created a new repository under /Store/SVN-REPOs
>> svnadmin create /Store/SVN-REPOs/myProject
>> then I changed the permission of /Store/SVN-REPOs to apache
>> I don't have SELinux configuration, so no need for additional permission
>> changes.
>> Trying to browse: http://home-linux/svn/ , I get error:
>> You don't have permission to access /svn on this server.
>> When trying to browse: http://home-linux/svn/myProject , I can see the
>> empty repository I created.
>> I am using SVNParentPath directive in the http configuration yet not being
>> able to browse the parent directory.
> That's normal. If you expected to see a list of repositories here, you
> should add "SVNListParentPath on" to the apache configuration.
> Second I tried to import some code into the new repository I created.
>> I used the following command:
>> svn import myProject http://home-linux/svn/myProject/trunk -m "Initial
>> import"
>> And got the following error:
>> svn: applying log message to
>> /svn/myProject/!svn/wbl/16d02436-25c9-49e8-a27a-47e1f7591491/0: 501 Method
>> Not Implemented (http://home-linux)
> In Subversion prior to 1.5 at least, you certainly needed to create the
> intermediate directories first. So in your case, you need to "svn mkdir"
> myProject before you can "svn import" to myProject/trunk.
Received on 2008-07-12 07:19:19 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.