List Info

Thread: New - subversion does not support redirects




New - subversion does not support redirects
user name
2007-05-11 15:32:34
http://subversion.tigris.org/issues/show_bug.cgi?id=2779

                 Issue #|2779
                 Summary|subversion does not support
redirects
               Component|subversion
                 Version|1.3.x
                Platform|All
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|mod_dav_svn
             Assigned to|issuessubversion
             Reported by|jon






------- Additional comments from jontigris.org Fri May 11
13:32:33 -0700 2007 -------
From: 	  subversion-2007bryandesign.com
Subject: 	Re: svn not following redirects
Date: 	May 11, 2007 1:17:15 PM PDT
To: 	  jwggoogle.com
Cc: 	  jonlatchkey.com, userssubversion.tigris.org

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.do
main.com/tags/1.0/
        DAV svn
        SVNPath /var/svn/test
</Location>

If i use my browser to go to:

http://svntest.domai
n.com/trunk/

It gets redirected properly to:

http://svntest.do
main.com/tags/1.0/

Now, if I do:

svn co http://svntest.domai
n.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: issues-unsubscribesubversion.tigris.org
For additional commands, e-mail: issues-helpsubversion.tigris.org


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )