[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: Branko ÄŒibej <brane_at_xbc.nu>
Date: 2002-07-30 13:27:28 CEST

Féliciano Matias wrote:

>Excuse my poor english.
>
>I have already posted a mail here about this.
>
>I don't like the use of file:// to reach a local repository.
>
>Everybody know that "file://`pwd`/dir' is equivalent to 'dir'.
>

That's simply wrong. It is not equivalent. It happens to work that way
on Unix, because absolute paths there start with a /; on Windows, for
example, your recipe yields an invalid URL.

> This is
>not true with subversion :
> $ svn co file://`pwd`/repos somewhere # work
> $ svn co repos somewhere # doesn't work
>

The reason "svn co" requires an URL is preciesly so that it can choose
between different reporitory access modules. file:// will go through
ra_local, http[s]:// will go through ra_dav.

> $ svnadmin dump repos > /dev/null # work
> $ svnadmin dump file://`pwd`/repos > /dev/null # doesn't word
>

Exactly, because svnadmin requires a local path, not an URL. That's
because it only works locally -- you can't administrate a remote
repository with svnadmin.

>Another strange point :
> $ svn co file:///var/svn/repos/proj_A/dir/ . # work
>but the directory /var/svn/repos/proj_A/dir/ does not existe.
>

What? I can't believe you can check out from a nonexistent repository.
What does "ls -lR /var/svn/repos/proj_A/dir/" give you?

If there really is nothing there, and you really get a working copy,
then that's a bug.

>this is in violation with the convention of "file://".
>

What convention would that be?

> If i put
>file:///var/svn/repos/proj_A/dir/ in a browser, this never work.
>
>So :
>- don't use "file://" when it does not mean "file://"
>

+1 on that, we only use file:// when it means file://.

>- create "svn://" for use by svn and perhaps for use with a browser
> (with a svn extension). The form of "svn://" is :
> svn://user:pass_at_host/path/file
>
>user, pass, and host are only for extensions actually. Perhaps when
>Subversion have this own server or when it use its own ACL system.
>

That would be useful if Subversion had its own network protocol. It
doesn't though; it uses HTTP, for which an URL schema already exists.

>If this make sense, the alpha stage of Subversion is a good opportunity.
>After the release 1.0, this should be too late.
>

I don't think it makes sense.

-- 
Brane ÄŒibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
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:28:03 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.