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

Re: contains unsupported hostname msg when importing

From: Mark Bohlman <mbohlman_at_tcicredit.com>
Date: 2004-09-14 18:05:52 CEST

Guido Anzuoni wrote:
> RFC stands for Request For Comment. Here some infos http://www.rfc-editor.org/
> The docs I referenced can be found at http://www.ietf.org/rfc/rfc2396.txt and http://www.ietf.org/rfc/rfc1738.txt.
> They basically define the syntax of url depending on the scheme (http, file, ftp etc.)
>
> If you could substitute path/to/repos with the real path and tell where you created the repository with svnadmin it could simplify everything
>
> Guido.
>
>
>
> -----Original Message-----
> From: VonCannon, Lee [mailto:Lee.VonCannon@baesystems.com]
> Sent: Tuesday, September 14, 2004 4:59 PM
> To: Guido Anzuoni
> Cc: users@subversion.tigris.org
> Subject: RE: contains unsupported hostname msg when importing
>
>
> Ok,
> I have tried installing cygwin and using it instead of the command line tool. I still get the same errors. Just so you have an idea of the things that I have tried, I listed a small subset of them. None of them work as you can see. Any suggestions? Oh, and what is RFC 1738 and RFC 2396 anyway?
>
> Thanks,
> Lee
>
> LVonCannon@DAVIS /cygdrive/c/Documents and Settings/LVonCannon/My Documents/Subv
> ersion
> $ svn import ./tmp/project file:///path/to/repos -m "initial import"
> svn: Unable to open an ra_local session to URL
> svn: Unable to open repository 'file:///path/to/repos'
>
> LVonCannon@DAVIS /cygdrive/c/Documents and Settings/LVonCannon/My Documents/Subv
> ersion
> $ svn import ./tmp/project file://./path/to/repos -m "initial import"
> svn: Unable to open an ra_local session to URL
> svn: Local URL 'file://./path/to/repos' contains unsupported hostname
>
> LVonCannon@DAVIS /cygdrive/c/Documents and Settings/LVonCannon/My Documents/Subv
> ersion
> $ svn import ./tmp/project file:///./path/to/repos -m "initial import"
> svn: Unable to open an ra_local session to URL
> svn: Unable to open repository 'file:///./path/to/repos'
>
> LVonCannon@DAVIS /cygdrive/c/Documents and Settings/LVonCannon/My Documents/Subv
> ersion
> $ svn import ./tmp/project file:///C:/path/to/repos -m "initial import"
> svn: Unable to open an ra_local session to URL
> svn: Unable to open repository 'file:///C:/path/to/repos'
>
> LVonCannon@DAVIS /cygdrive/c/Documents and Settings/LVonCannon/My Documents/Subv
> ersion
> $ svn import ./tmp/project "file:///C|/path/to/repos" -m "initial import"
> svn: URL 'file:///C|/path/to/repos' is not properly URI-encoded
>
> LVonCannon@DAVIS /cygdrive/c/Documents and Settings/LVonCannon/My Documents/Subv
> ersion
> $ svn import ./tmp/project "file:///C:/Documents and Settings/LVonCannon/My Doc
> uments/Subversion/path/to/repos" -m "initial import"
> svn: URL 'file:///C:/Documents and Settings/LVonCannon/My Documents/Subversion/p
> ath/to/repos' is not properly URI-encoded
>
> LVonCannon@DAVIS /cygdrive/c/Documents and Settings/LVonCannon/My Documents/Subv
> ersion
> $ svn import ./tmp/project file:///"C:/Documents and Settings/LVonCannon/My Doc
> uments/Subversion/path/to/repos" -m "initial import"
> svn: URL 'file:///C:/Documents and Settings/LVonCannon/My Documents/Subversion/p
> ath/to/repos' is not properly URI-encoded
>
>
>
>
> From: Guido Anzuoni [mailto:guido.anzuoni@kyneste.com]
> Sent: Tuesday, September 14, 2004 2:55 AM
> To: VonCannon, Lee; users@subversion.tigris.org
> Subject: RE: contains unsupported hostname msg when importing
>
> It seem that the url is wrong.
> The general url syntax for file scheme is:
> file:///<file system path>
> On windows platform is:
> file:///<drive letter>:/dir1/dir2....
> On unix
> file:///dir1/dir2....
>
> I have seen many post for troubles caused by incorrect url syntax..
> I suggest the reading of RFC 1738 and RFC 2396.
>
> Guido.
> -----Original Message-----
> From: VonCannon, Lee [mailto:Lee.VonCannon@baesystems.com]
> Sent: Monday, September 13, 2004 11:29 PM
> To: users@subversion.tigris.org
> Subject: contains unsupported hostname msg when importing
> Hey,
> I am new to subversion and I have only used cvs a little in the past so sorry if the answer to my question is obvious. I am using Win XP and I am working from the command line. I have read the first two chapters in the book and I am trying to get through the Quick Start part. This is what I have done so far:
>
> I first created a \path\to directory in a Subversion folder on my C: drive (note: The Quick Start page in the book does not say to do this, but it needs to be done, so it might be a good idea to add that step to the book)
>
> I then typed:
> C:\...\Subversion> svnadmin create .\path\to\repos
>
> I then created the directories (tmp\project\branches, tmp\project\trunk, tmp\project\tags) and files that were suggested by the Quick Start.
>
> The problem happens when I type this:
>
> C:\...\Subversion>svn import .\tmp\project file://./path/to/repos -m "initial import"
>
> I get this back:
>
> svn: Unable to open an ra_local session to URL
> svn: Local URL 'file://./path/to/repos' contains unsupported hostname
>
> Again, I apologize if this is an obvious question. I have tried many ways to type that command but nothing seems to work.
>
> Thanks,
> Lee

Note that as Guido pointed out this really is the definition of the URL
that is the problem.
And that
svn ls file:///path_to_repos

(with 3 slashes) is effectively the same as

svn ls file://localhost/path_to_repos

Just like using a web URL as in http://server/....

So your import command should be:
svn import .\tmp\project file:///path/to/repos/project -m "Initial import"

Note that I added project assuming you probably want this, see the book
for more recommendations on repository layouts.
No need for cygwin - tho it is a good addition anyway, and no need to
dive into the RFC's so long as the URLs are specified correctly.
Hope this helps.

-- Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Sep 14 18:06:20 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.