You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Weston Houghton <we...@anapraxis.com> on 2004/05/26 20:01:21 UTC

Initial Import Error

Hi all,

I just started using Subversion, so I'm guessing this may be a 
completely newbie issue, but I've not been able to figure it out yet, 
so I am leaning on the list for help.

I have my internal Linux server running, I installed from source a few 
days ago (the server is Running RedHat 9). I have tried this both from 
that machine locally, as well as from my OS X machine running a fink 
install of svn.

[whoughton@evil ~]$ svnadmin create /home/whoughton/repo

This seems to work fine, all of the directories and files are created. 
I then try to do:

[whoughton@evil ~]$ svn import /home/whoughton/test 
file:///home/whoughton/repo -m "initial trial"
Adding         /home/whoughton/test/trunk
Adding         /home/whoughton/test/trunk/blah.txt
Adding         /home/whoughton/test/branches
Adding         /home/whoughton/test/tags

Committed revision 1.

So, to the best of my knowledge, this project should be in the 
repository now, but doing a list on the repository gives:

[whoughton@evil ~]$ ll repo
total 28
drwxr-xr-x    2 whoughton root         4096 May 26 15:58 conf
drwxr-xr-x    2 whoughton root         4096 May 26 15:58 dav
drwxr-xr-x    2 whoughton root         4096 May 26 15:58 db
-r--r--r--    1 whoughton root            2 May 26 15:58 format
drwxr-xr-x    2 whoughton root         4096 May 26 15:58 hooks
drwxr-xr-x    2 whoughton root         4096 May 26 15:58 locks
-rw-r--r--    1 whoughton root          376 May 26 15:58 README.txt

nothing is there, and if I try to do a checkout of it:

[whoughton@evil ~]$ svn checkout file:///home/whoughton/repo/test/trunk
subversion/libsvn_client/checkout.c:95: (apr_err=170000)
svn: URL 'file:///home/whoughton/repo/test/trunk' doesn't exist

I get the same issues when trying to do a svn+ssh login from my mac as 
well, any thoughts on this issue would be greatly appreciated.

Wes Houghton


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

Re: Initial Import Error

Posted by Ben Collins-Sussman <su...@collab.net>.
On Wed, 2004-05-26 at 15:16, Weston Houghton wrote:
> Aha ok, thanks for the lead.
> 
> I'm a cvs user, so I think I'm somewhat tainted by how it has me 
> trained, I've been going through the book, but I find it a little 
> lacking so far, though that is just as likely due to me looking in the 
> wrong place for the information.

If you're one of those people who "learn by doing", then you're in for
some pain.  The book presents a nice top-down approach, but it assumes
you have the patience to read whole chapters explaining the big
picture.  You really need to read chapters 2, 3, and 5 to understand how
to manage a repository and use a client.  If you just want to know "how
to do something", there's no easy way to just point to a specific place
in the book.  You need the big picture.

> 
> So how do I do it if I want the test project to be one of many projects 
> I can check out of that single repository? Would I just add it 
> initially to the repository using:
> 
> svn import /home/whoughton/test file:///home/whoughton/repo/test -m 
> "initial trial"
> 
> and then checkout using:
> 
> svn checkout file:///home/whoughton/repo/test/trunk

Yeah, that would work.  You want to create a "project root" for each
project.  See chapter 5.



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

Re: Initial Import Error

Posted by Weston Houghton <we...@anapraxis.com>.
Aha ok, thanks for the lead.

I'm a cvs user, so I think I'm somewhat tainted by how it has me 
trained, I've been going through the book, but I find it a little 
lacking so far, though that is just as likely due to me looking in the 
wrong place for the information.

So how do I do it if I want the test project to be one of many projects 
I can check out of that single repository? Would I just add it 
initially to the repository using:

svn import /home/whoughton/test file:///home/whoughton/repo/test -m 
"initial trial"

and then checkout using:

svn checkout file:///home/whoughton/repo/test/trunk

??
Again, thanks much for the info, I really appreciate it. I knew svn 
used the BDB but I thought that was just for versioning info, not for 
the files themselves I guess. Good to know.

Wes


On May 26, 2004, at 4:04 PM, Ben Collins-Sussman wrote:

> On Wed, 2004-05-26 at 15:01, Weston Houghton wrote:
>
>> [whoughton@evil ~]$ svn import /home/whoughton/test
>> file:///home/whoughton/repo -m "initial trial"
>> Adding         /home/whoughton/test/trunk
>> Adding         /home/whoughton/test/trunk/blah.txt
>> Adding         /home/whoughton/test/branches
>> Adding         /home/whoughton/test/tags
>
> This puts the contents of "/home/whoughton/test" into the root 
> directory
> of your repository.  So your repository now looks like:
>
>   /branches
>   /tags
>   /trunk
>   /trunk/blah.txt
>
>
>>
>> Committed revision 1.
>>
>> So, to the best of my knowledge, this project should be in the
>> repository now, but doing a list on the repository gives:
>>
>> [whoughton@evil ~]$ ll repo
>> total 28
>> drwxr-xr-x    2 whoughton root         4096 May 26 15:58 conf
>> drwxr-xr-x    2 whoughton root         4096 May 26 15:58 dav
>> drwxr-xr-x    2 whoughton root         4096 May 26 15:58 db
>> -r--r--r--    1 whoughton root            2 May 26 15:58 format
>> drwxr-xr-x    2 whoughton root         4096 May 26 15:58 hooks
>> drwxr-xr-x    2 whoughton root         4096 May 26 15:58 locks
>> -rw-r--r--    1 whoughton root          376 May 26 15:58 README.txt
>>
>
> The repository stores your files and directories in a BDB database.  
> You
> can't see them literally.   You might want to read the Subversion book.
> :-)
>
>
>> nothing is there, and if I try to do a checkout of it:
>>
>> [whoughton@evil ~]$ svn checkout 
>> file:///home/whoughton/repo/test/trunk
>> subversion/libsvn_client/checkout.c:95: (apr_err=170000)
>> svn: URL 'file:///home/whoughton/repo/test/trunk' doesn't exist
>
> See my first comment.  The /test directory doesn't exist at the root of
> your repository.  You want to checkout 
> file:///home/whoughton/repo/trunk
>


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

Re: Initial Import Error

Posted by Ben Collins-Sussman <su...@collab.net>.
On Wed, 2004-05-26 at 15:01, Weston Houghton wrote:

> [whoughton@evil ~]$ svn import /home/whoughton/test 
> file:///home/whoughton/repo -m "initial trial"
> Adding         /home/whoughton/test/trunk
> Adding         /home/whoughton/test/trunk/blah.txt
> Adding         /home/whoughton/test/branches
> Adding         /home/whoughton/test/tags

This puts the contents of "/home/whoughton/test" into the root directory
of your repository.  So your repository now looks like:

  /branches
  /tags
  /trunk
  /trunk/blah.txt


> 
> Committed revision 1.
> 
> So, to the best of my knowledge, this project should be in the 
> repository now, but doing a list on the repository gives:
> 
> [whoughton@evil ~]$ ll repo
> total 28
> drwxr-xr-x    2 whoughton root         4096 May 26 15:58 conf
> drwxr-xr-x    2 whoughton root         4096 May 26 15:58 dav
> drwxr-xr-x    2 whoughton root         4096 May 26 15:58 db
> -r--r--r--    1 whoughton root            2 May 26 15:58 format
> drwxr-xr-x    2 whoughton root         4096 May 26 15:58 hooks
> drwxr-xr-x    2 whoughton root         4096 May 26 15:58 locks
> -rw-r--r--    1 whoughton root          376 May 26 15:58 README.txt
> 

The repository stores your files and directories in a BDB database.  You
can't see them literally.   You might want to read the Subversion book.
:-)


> nothing is there, and if I try to do a checkout of it:
> 
> [whoughton@evil ~]$ svn checkout file:///home/whoughton/repo/test/trunk
> subversion/libsvn_client/checkout.c:95: (apr_err=170000)
> svn: URL 'file:///home/whoughton/repo/test/trunk' doesn't exist

See my first comment.  The /test directory doesn't exist at the root of
your repository.  You want to checkout file:///home/whoughton/repo/trunk



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