Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN won't commit unversioned files even though they show up with svn status

Tags:

macos

svn

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?

like image 613
Tricky Avatar asked May 27 '09 23:05

Tricky


People also ask

Why is SVN showing target folder in the output?

As it is showing target folder in the output, it means that target folder is already under version control hence it will never affect with your ignore file list. Svn will commit every file that is under version control.

How do I Checkout a repository using SVN?

Step 1: Create a folder in your local file system. Right click inside the folder where you want to checkout the repository and select " SVN Checkout... " from the pop-up menu.

Does subversion ignore changes made to a versioned file?

Once an object is under Subversion’s control, the ignore pattern mechanisms no longer apply to it. In other words, don’t expect Subversion to avoid committing changes you’ve made to a versioned file simply because that file’s name matches an ignore pattern—Subversion always notices all of its versioned objects.

Why do I need to add unversioned files to my SVN?

If you currently organize your project files in an unversioned directory structure, then they must be added to your Assembla SVN repo before you can start committing your changes to those files.


2 Answers

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"

like image 193
Kamil Kisiel Avatar answered Nov 11 '22 00:11

Kamil Kisiel


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?"

like image 36
Ned Batchelder Avatar answered Nov 11 '22 02:11

Ned Batchelder