[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: VonCannon, Lee <Lee.VonCannon_at_baesystems.com>
Date: 2004-09-14 23:49:29 CEST

I found the problem. I tried running the commands in a different
directory without spaces in the name and it ran fine. Is there a way
around the spaces issue? This command works fine:

 

C:\Subversion>svn import ./tmp/project
file:///C:/Subversion/path/to/repos -m "initial import"

Adding tmp\project\trunk

Adding tmp\project\trunk\foo.c

Adding tmp\project\trunk\bar.c

Adding tmp\project\trunk\Makefile.txt

Adding tmp\project\branches

Adding tmp\project\tags

 

Where as this one fails:

 

C:\Documents and Settings\LVonCannon\My Documents\Subversion>svn import
./tmp/project "file:///C:/Documents and Settings/LVonCannon/My
Documents/Subversion/path/to/repos" -m "initial import"

 

Thanks for your time.

 

 

________________________________

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 <file:///\\%3cfile> system path>

On windows platform is:

file:///<drive <file:///\\%3cdrive> letter>:/dir1/dir2....

On unix

file:///dir1/dir2 <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
Received on Tue Sep 14 23:51:16 2004

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