[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: Sander Striker <striker_at_apache.org>
Date: 2002-04-11 10:59:53 CEST

> From: Alexis Huxley [mailto:ahuxley@gmx.net]
> Sent: 11 April 2002 10:33

> > > 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>

No, because that would be incorrect. Location can be any path
you like.

> And (2) the same in the example in the 'Running and testing' section.

The only requirement is that you operate on the url you have configured.
IOW:

$ svn <operation> http://<hostname>/<what_i_typed_at_location>

What you did was configure the repos on http://localhost/svn/repos and
then you were trying to access it through http://localhost/repos/svn.
 
> 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 ;-)

Nope. Read up on the Location directive in the apache docs ;)
 
> Thanks for the help! Now to start playing ... :-)

No prob.
 
> Alexis

Sander

---------------------------------------------------------------------
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:54:07 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.