Reputation: 44332
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?
Upvotes: 1
Views: 6172
Reputation: 44332
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?
Upvotes: 3
Reputation: 1665
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
Upvotes: 0
Reputation: 7380
for more information see the svn ebook here! -> http://svnbook.red-bean.com/en/1.5/svn-book.pdf
Upvotes: 1
Reputation: 16848
Are you sure about that? It said import was committed...try a checkout! (and read the book:)
Upvotes: 3
Reputation:
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.
Upvotes: 1
Reputation: 10064
You should be importing to:
file:///Library/...
not
file:///library/...
Upvotes: 0