You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by The Original <ma...@ntlworld.com> on 2003/04/04 10:51:27 UTC

Please don't laugh...HTTP access?

Hi All,

I have a question, very new to svn, previously used cvs, and liked the sound of all the new features coming to svn.  

Anyhoo, my question is basically, the http access, is it possible to do this all through a web browser?  If so can anyone give me a nudge in the right direction?

Thanks

Mark A Evans


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Please don't laugh...HTTP access?

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
Martin v. Löwis wrote:

>Ben Collins-Sussman <su...@collab.net> writes:
>
>  
>
>>However, the svn client has to make a number of queries to 'discover'
>>the correct URL to GET.  The server has the right to define the
>>resource space however it chooses;  so the deltaV spec only defines a
>>way for the client to query/discover the correct URL that represents
>>the older file.
>>    
>>
>
>I see. But isn't it always the same format, for a subversion server,
>i.e. <repository>/!svn/ver/<version>/<path> ???
>  
>

that is an implementation detail, and has changed in the past, so i 
don't recommend relying on it.

-garrett


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Please don't laugh...HTTP access?

Posted by Greg Stein <gs...@lyra.org>.
On Fri, Apr 04, 2003 at 03:32:59PM -0600, Ben Collins-Sussman wrote:
> martin@v.loewis.de (Martin v. Löwis) writes:
> 
> > Ben Collins-Sussman <su...@collab.net> writes:
> > 
> > > However, the svn client has to make a number of queries to 'discover'
> > > the correct URL to GET.  The server has the right to define the
> > > resource space however it chooses;  so the deltaV spec only defines a
> > > way for the client to query/discover the correct URL that represents
> > > the older file.
> > 
> > I see. But isn't it always the same format, for a subversion server,
> > i.e. <repository>/!svn/ver/<version>/<path> ???
> 
> Well, at the moment, yes, the subversion server (mod_dav_svn) *does*
> have a fixed format.  But that could change at any time.  So clients
> still need to follow standard deltaV procedure to discover the URL.

Well, as Garrett pointed out, that format has changed in the past, so it
isn't "fixed" by any means.

Second, the "!svn" portion can be changed by the administrator. Some whacko
out there might want to have a file named "!svn" and we enable them to do
that. Or, the admin might simply want to have particular URL layouts for
something she is doing.

Third, the /ver/ resources are probably *not* what you want. Those access
specific resources at various points in time. To reach them, you have to do
a number of queries to get the right version resource (the current form of
rev/path is *very* subject to change; that one changed dramatically since we
started). To actually browse an older revision, the official DeltaV concept
is to browse a baseline collection (since we model revisions as baselines).
Those URLs are at .../bc/<rev>/.

Again, you should perform the appropriate PROPFIND requests to find the
baseline collection. Humans "in the know" can type it into their browser.
But I would not recommend encoding any of those paths into any software.
Always use the PROPFINDs within code.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

RE: Please don't laugh...HTTP access?

Posted by Sander Striker <st...@apache.org>.
> From: sussman@collab.net [mailto:sussman@collab.net]
> Sent: Friday, April 04, 2003 11:33 PM

> martin@v.loewis.de (Martin v. Löwis) writes:
>
> > Ben Collins-Sussman <su...@collab.net> writes:
> >
> > > However, the svn client has to make a number of queries to 'discover'
> > > the correct URL to GET.  The server has the right to define the
> > > resource space however it chooses;  so the deltaV spec only defines a
> > > way for the client to query/discover the correct URL that represents
> > > the older file.
> >
> > I see. But isn't it always the same format, for a subversion server,
> > i.e. <repository>/!svn/ver/<version>/<path> ???
>
> Well, at the moment, yes, the subversion server (mod_dav_svn) *does*
> have a fixed format.

Nope. It's configurable:

SVNSpecialURI   "specify the URI component for special Subversion "resources"

> But that could change at any time.  So clients still need to follow
> standard deltaV procedure to discover the URL.

Sander


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Please don't laugh...HTTP access?

Posted by Ben Collins-Sussman <su...@collab.net>.
martin@v.loewis.de (Martin v. Löwis) writes:

> Ben Collins-Sussman <su...@collab.net> writes:
> 
> > However, the svn client has to make a number of queries to 'discover'
> > the correct URL to GET.  The server has the right to define the
> > resource space however it chooses;  so the deltaV spec only defines a
> > way for the client to query/discover the correct URL that represents
> > the older file.
> 
> I see. But isn't it always the same format, for a subversion server,
> i.e. <repository>/!svn/ver/<version>/<path> ???

Well, at the moment, yes, the subversion server (mod_dav_svn) *does*
have a fixed format.  But that could change at any time.  So clients
still need to follow standard deltaV procedure to discover the URL.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org


Re: Please don't laugh...HTTP access?

Posted by "Martin v. Löwis" <ma...@v.loewis.de>.
Ben Collins-Sussman <su...@collab.net> writes:

> However, the svn client has to make a number of queries to 'discover'
> the correct URL to GET.  The server has the right to define the
> resource space however it chooses;  so the deltaV spec only defines a
> way for the client to query/discover the correct URL that represents
> the older file.

I see. But isn't it always the same format, for a subversion server,
i.e. <repository>/!svn/ver/<version>/<path> ???

Regards,
Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Please don't laugh...HTTP access?

Posted by Ben Collins-Sussman <su...@collab.net>.
martin@v.loewis.de (Martin v. Löwis) writes:

> Ben Collins-Sussman <su...@collab.net> writes:
> 
> > You mean, "is it possible to do all version control procedures with a
> > web browser?"
> > 
> > Web browsers, AFAICT, only know how to do GET, LOCK, PUT, UNLOCK http
> > requests.
> 
> As a related question: Is it possible to access older version with a
> web browser (i.e. in a GET request)? 
> 
> I know about viewcvs, but I'm wondering whether Subversion has
> anything built-in in this respect (and I know you can get the latest
> revision through GET).

Yes, the subversion client *does* fetch older revisions of files using
GET.  That's it's only option, because that's how the WebDAV/DeltaV
protocol works.

However, the svn client has to make a number of queries to 'discover'
the correct URL to GET.  The server has the right to define the
resource space however it chooses;  so the deltaV spec only defines a
way for the client to query/discover the correct URL that represents
the older file.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org


Re: Please don't laugh...HTTP access?

Posted by "Martin v. Löwis" <ma...@v.loewis.de>.
Ben Collins-Sussman <su...@collab.net> writes:

> You mean, "is it possible to do all version control procedures with a
> web browser?"
> 
> Web browsers, AFAICT, only know how to do GET, LOCK, PUT, UNLOCK http
> requests.

As a related question: Is it possible to access older version with a
web browser (i.e. in a GET request)? 

I know about viewcvs, but I'm wondering whether Subversion has
anything built-in in this respect (and I know you can get the latest
revision through GET).

Regards,
Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Please don't laugh...HTTP access?

Posted by Ben Collins-Sussman <su...@collab.net>.
The Original <ma...@ntlworld.com> writes:

> Anyhoo, my question is basically, the http access, is it possible to
> do this all through a web browser?  If so can anyone give me a nudge
> in the right direction?

You mean, "is it possible to do all version control procedures with a
web browser?"

Web browsers, AFAICT, only know how to do GET, LOCK, PUT, UNLOCK http
requests.  I guess you might be able to do very basic editing of svn
repository files this way, assuming you turn on "autoversioning".
Read the WebDAV appendix in the svn book (svnbook.red-bean.com).



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org