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

Re: svn not following redirects

From: Josh Gilkerson <jwg_at_google.com>
Date: 2007-05-11 21:43:33 CEST

This doesn't answer your question exactly, but ...

I haven't tried this with mod_dav_svn, but you could try using URL
rewriting instead of a redirect.

See: http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html

You probably want to use the PT flag for this kind of rewrite.

On 5/11/07, Jon Scott Stevens <jon@latchkey.com> wrote:
> Imagine this simple apache configuration:
>
> <Location "/">
> Redirect /trunk/ http://svntest.domain.com/tags/1.0/
> DAV svn
> SVNPath /var/svn/test
> </Location>
>
> If i use my browser to go to:
>
> http://svntest.domain.com/trunk/
>
> It gets redirected properly to:
>
> http://svntest.domain.com/tags/1.0/
>
> Now, if I do:
>
> svn co http://svntest.domain.com/trunk/ test
>
> then I get:
>
> svn: URL 'http://svntest.domain.com/trunk' doesn't exist.
>
> So, my question is how can I make svn follow redirects and why
> doesn't it already?
>
> The idea that I'm experimenting with is the ability to create what
> amounts to an alias. I want to be able to pin a specific tag to a
> specific folder and be able to update that tag by just changing the
> apache config. svn:externals doesn't quite help in this regard
> because svn also wouldn't find that 'trunk' folder either.
>
> jon
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

-- 
Josh Gilkerson
Software Engineer
Google, Inc
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri May 11 21:44:08 2007

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.