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

Re: file:// -> svn://

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2002-07-30 13:37:41 CEST

Féliciano Matias <feliciano.matias@free.fr> writes:

> Everybody know that "file://`pwd`/dir' is equivalent to 'dir'. This is
> not true with subversion :
> $ svn co file://`pwd`/repos somewhere # work
> $ svn co repos somewhere # doesn't work
> $ svnadmin dump repos > /dev/null # work
> $ svnadmin dump file://`pwd`/repos > /dev/null # doesn't word

It may not be clear from the handbook, but there are fundamental
design points here.

'svnadmin' and 'svnlook' have no concept of networking. They are
designed to operate directly on repositories. Plain and simple.

'svn' is designed to use any number of network layers; therefore it
is defined to always contact a repository via URL. Each network layer
takes responsibility for for some URL schema. ra_dav handles http://
and https:// schemas. If somebody wrote ra_ftp, it would handle the
ftp:// schema. ra_local handles the file:// schema.

A repository URL consists of two parts: the first part takes you to
the repository itself, the second part is a path *within* the
repository. For example,

    http://svn.collab.net/repos/svn/trunk/README
   
    is ultimately decomposed into

    http://svn.collab.net/repos/svn

         and
 
    /trunk/README.

This same technique is used to decompose file:// urls.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jul 30 13:39:17 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.