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

Re: svn import fails for remote repository only

From: Julian Fitzell <julian_at_beta4.com>
Date: 2002-04-11 10:48:32 CEST

Alexis Huxley wrote:
>>>Then I have just the following in the apache2 config:
>>>
>>> <Location /svn/repos>
>>
>> ^^^^^^^^^^
>>
>>> DAV svn
>>> SVNPath <repository_path>
>>> </Location>
>>>
>>>Then as a normal user I ran:
>>>
>>> svn import http://localhost/repos/svn <sources_path> <repository_subdir>
>>
>> ^^^^^^^^^
>>
>>See the bits I underlined? ;)
>
>
> Ok, it's sorted. May I suggest that in the INSTALL document (1)
> the section in 'Configuring Apache for Subversion'
>
> <Location /svn/repos>
> DAV svn
> SVNPath /absolute/path/to/repository
> </Location>
>
> is changed to:
>
> <Location /absolute/path/to/repository>
> DAV svn
> SVNPath /absolute/path/to/repository
> </Location>
>
> And (2) the same in the example in the 'Running and testing' section.
>
> To those who know, it may be clear that "/svn/repos" means the actual
> repository path, but I made the - not stupid - assumption that
> "/svn/path" was similar to a cgi-script or something, and merely
> served to trigger SVN on the server side, and that it would receive
> the path from the SVNPath field, and was therefore fixed text.
>
> If the 'Location' and the path in the URL must match and specify the
> path of the repository, then what is the 'SVNPath' for? Isn't there
> a bit of duplication of information there? My assumption was that that
> was not ;-)

Hmm... no, the Location does specify the URL that is used to access the
resource, it is not a file system path. The problem was simply that the
URL you were giving to the import command did not match the one you
defined in your Location tag.

Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Apr 11 10:49:48 2002

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

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