tags:

views:

643

answers:

3

Hi, I'm running into difficulty setting up a new project into source control. I've imported a project into subversion and on the surface everything seems to be running fine. However, whenever I add a new file into the project, even though it comes up as unversioned when I run svn status, it isn't checked in when i try and check in, either using svn ci -m 'msg' or when I try in my Versions OS X svn client.

here's some example output from svn status:

?      Assets/Placeholder Images/shopping_list_1.png

And when I try to check-in it only checks in those files already versioned. The rest are ignored silently!

Any ideas on how I might solve this?

+8  A: 

You have to add the file to your working copy:

svn add Assets/Placeholder Images/shopping_list_1.png

then you can check it in to the repository:

svn ci -m "Added shopping list placeholder image"

Kamil Kisiel
to be pedantic: "svn add" does not "add a file to repository". It only adds the file to the set of versioned files in your local working copy. This has no effect on the repository until you commit.
Wim Coenen
YOu're right. I clarified my answer a bit.
Kamil Kisiel
A: 

Checkout this plugin for OS X. It's like TortoiseSVN for Windows users.

http://scplugin.tigris.org/

David Liddle
+1  A: 

The question mark in the first column of the status output means the file isn't ignore, but also isn't being versioned. It's svn's way of saying "huh? what do you want me to do with this?"

Ned Batchelder