views:

1232

answers:

7

I have subversion setup on Mac OS X 10.5.6. When I do

svn import myproject file:///library/subversion/myproject/trunk -m "initial import"

Committed revision 2.

Nothing happens. I'm back at the command prompt and no files are imported. Any suggestions?

A: 

You should be importing to:

file:///Library/...

not

file:///library/...
Mark Pim
Makes no difference.
4thSpace
+1  A: 

What are you expecting to happen? The the files (if any) in myproject wil be added to the repository. Nothing will be changes in myproject itself - to get a working copy you need to do a checkout.

anon
I'm expecting to see lines such as "Added..., Addedd...". Meaning files are actually being add, which they are not. I created another user account, a new repository added to it. I got the "Added..." lines and could also see the files in the repository.
4thSpace
+3  A: 

Are you sure about that? It said import was committed...try a checkout! (and read the book:)

Si
Have you read the book? Notice all of the "Adding..." entries: http://svnbook.red-bean.com/en/1.5/svn.tour.importing.html. If those aren't there, nothing is added.
4thSpace
Can we assume there are files actually under /library/subversion/myproject/trunk? Either do a svn checkout URL or svn list URL to confirm the directory was added. Also note that svn import is designed to be used without a working copy, but svn add uses a working copy.
Si
+1  A: 

for more information see the svn ebook here! -> http://svnbook.red-bean.com/en/1.5/svn-book.pdf

Tobiask
A: 

You need to tell SVN which files in the current directory you want to add to the repository before you commit.

svn add [filename]

--Edit

OK Quick Lesson

navigate to the directory you want to be your "Working copy" for your repository.

SVN CHECKOUT [my_repository_address]

Create the files you wish to add to your repository then add them

SVN ADD [my_file]

Commit your changes back to the repository

SVN COMMIT

When you are done please go and read the SVN book which is freely available on-line: http://svnbook.red-bean.com/en/1.5/index.html

Craig Warren
If I try svn add [mydirectory], I get: svn: '.' is not a working copysvn: Can't open file '.svn/entries': No such file or directory
4thSpace
A: 

This isn't an answer but I can't stick in the comments. (If there is a better way moderator, please let me know).

Here's the steps I did for the second account, which works fine. repo, repo2 and testdocs are in the root folder.

Log into usera account Open Terminal and....

MacBook:/ usera$ svnadmin create repo2
MacBook:/ usera$ chmod -R a+rwX repo2
MacBook:/ usera$ cd testdocs
MacBook:testdocs usera$ svn import file:///repo2 -m "initial import"
Adding         questions.rtf
Adding         UsingStatement.txt
Adding         questions2.txt
Adding         iPhone.rtf

Committed revision 1.
MacBook:testdocs usera$

Then I opened repo2 in svnX. All files are there. I log off of usera and logon to my account. I had already done the above but with "repo". Those are the results I've already posted, which show import not working. I open repo2 with svnX. All files are still there. I open repo with svnX. No files. Why does it work in one account and not in another?

4thSpace
You can just edit your question to add information!
Wim Coenen
How else is it done?
4thSpace
A: 

user permissions probably not got access to the repro files.

mot