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

Re: SV: Accessing different revs via Apache?

From: Rafael Garcia-Suarez <raphel.garcia-suarez_at_hexaflux.com>
Date: 2002-10-09 15:23:58 CEST

Ben Collins-Sussman <sussman@collab.net> wrote:
>
> Personally, I can understand the desire for this. A friend of mine
> once asked, "do we control our network protocol, or does it control
> *us*?"

That's a quote from Matrix, isn't ?

> I wouldn't mind inserting this special-case. Another part of
> me sort of cringes, though, in adding non-deltaV stuff to
> mod_dav_svn. We're trying to *increase* interoperability, not
> decrease it.
>
> Another option, of course, is to write a tiny C program or python
> script (or something) which actually behaves like a good deltaV
> client: it makes a few GET requests and uses the proper procedure to
> "discover" the URL, exactly as libsvn_ra_dav does. For example:
>
> $ get_bc_url.py 2319 http://svn.collab.net/repos/svn
> http://svn.collab.net/repos/svn/!svn/bc/2319/trunk
>
> Then you could paste that URL into your web browser, keeping in mind
> that it might be different from server to server, or day to day.

And this can even be used as a small cgi script :
http://svn.collab.net/cgi-bin/get_bc_url.py?2319/trunk/some/dir/
-> redirects to
http://svn.collab.net/repos/svn/!svn/bc/2319/trunk/some/dir/

OR even better : instead of a CGI script, implement this as an apache
handler that performs an internal redirect, so the user never sees the
../!svn/.. URL in the browser's location bar. A bit more cumbersome
though.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Oct 9 15:26:56 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.