[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: Ryan Schmidt <subversion-2007b_at_ryandesign.com>
Date: 2007-05-11 22:17:15 CEST

On May 11, 2007, at 14:43, Josh Gilkerson wrote:

> On 5/11/07, Jon Scott Stevens 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.
>
> 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.

Jon, Subversion does not support redirects. That's all I can tell
you. I've tried to use these before myself to no avail (and to
strange error messages). In the end I had to give up.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri May 11 22:17:44 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.