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

Re: SVNListParentPath on and the command line

From: Dominic Anello <danello_at_danky.com>
Date: 2006-01-24 15:15:38 CET

On 2006-01-17 12:41:43 +0000, Nick Thompson wrote:
> On Tuesday 17 January 2006 12:13, Miha Vitorovic wrote:
> > Nick Thompson <nickthompson@agere.com> wrote on 17.01.2006 12:44:52:
> > > Hi,
> > >
> > > I've turned on SVNListParentPath in httpd.conf (2.0.55) and can
> > > now see a list of my repos via a web browser (SVN 1.3.0 required
> > > to do this). How can I get a list of repos from the command line?
> > >
> > > I tried "svn ls http://localhost/svn", with and without a
> > > trailing slash, and I just get:
> > >
> > > svn: PROPFIND request failed on '/svn'
> > > svn: PROPFIND of '/svn': 301 Moved Permanently (http://localhost)
> > >
> > > Which is different to what I got before I turned the option on,
> > > but not very useful ;-)
> >
> > Put a trailing slash in <Location /PATH/TO/REPOS/ (<--- this
> > one...)> in httpd.conf.
>
> Okay thanks, did that. The web browser approach still works as long as
> I add the trailing / there as well. From the command line I now get:
>
> Nick-> svn ls http://localhost/svn/ <-with or without the trailing /
> svn: PROPFIND request failed on '/svn'
> svn: PROPFIND of '/svn': 405 Method Not Allowed (http://localhost)
>
> I now have the following in httpd.conf:
>
> <Location /svn/>
> DAV svn
> SVNParentPath /local/svn
> SVNListParentPath on
> SetOutputFilter DEFLATE
> </Location>
>
> Thanks,

I'm pretty sure the repo listing thing is just designed to respond to a
simple GET request. svn ls is using svn's dialect of WebDAV and is
sending requests (PROPFIND) the little repo listing feature was designed
to respond to. I think the feature was just in response to people who
said "Why can I browse to a repo using a web browser, but I can't see a
list of all my repos".

If you really want to list from the command line, try one of these:
$ lynx -dump http://localhost/svn/
$ echo -e 'GET /svn/ HTTP/1.0\n' | nc localhost 80

-Dominic

  • application/pgp-signature attachment: stored
Received on Tue Jan 24 15:17:49 2006

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.