SVN (Subversion) Problem "File is scheduled for addition, but is missing" - Using Versions

SvnMacosVersions

Svn Problem Overview


I'm using Versions for SVN.

I attempt to commit and get this message:

> Commit failed (details follow): > '/Users/mike/Sites/mysite.com/astss-cvsdude/Trunk/cart/flashfile.swf' > is scheduled for addition, but is > missing

I suppose this is because I had added files to the repo, and then deleted them via the filesystem.

I'd like to have it simply make note of my change, and apply the change to the repo.

How can I get around this?

Svn Solutions


Solution 1 - Svn

I'm not sure what you're trying to do: If you added the file via

svn add myfile

you only told svn to put this file into your repository when you do your next commit. There's no change to the repository before you type an

svn commit

If you delete the file before the commit, svn has it in its records (because you added it) but cannot send it to the repository because the file no longer exist.

So either you want to save the file in the repository and then delete it from your working copy: In this case try to get your file back (from the trash?), do the commit and delete the file afterwards via

svn delete myfile
svn commit

If you want to undo the add and just throw the file away, you can to an

svn revert myfile

which tells svn (in this case) to undo the add-Operation.

EDIT

Sorry, I wasn't aware that you're using the "Versions" GUI client for Max OSX. So either try a revert on the containing directory using the GUI or jump into the cold water and fire up your hidden Mac command shell :-) (it's called "Terminal" in the german OSX, no idea how to bring it up in the english version...)

Solution 2 - Svn

I had the same problem with Versions displaying the same message. I simply right clicked the offending files and selected 'Revert...' from the right-click menu and all was good.

Basically Versions (actually Subversion) thinks you still want to add the file, but it cannot find it because you deleted it in the file system. The Revert option tells Subversion to forget about adding it.

Solution 3 - Svn

Adding a file, and then deleting it is the kind of operation that's considered an error - and so SVN is telling you. You told it to expect some file data and then don't supply it when you commit, the red lights flash and the sirens go off!

The answer is to undo your add, alternatively commit the file and then use 'svn rm' to remove it from the filesystem and the repo.

Solution 4 - Svn

This solved my similar problem. I used it to revert the changes, then I added everything and commited changes in the terminal with

svn add folder_path/*
svn commit -m "message"

Solution 5 - Svn

Avoid using Xcode to rename files in a folder reference. If you rename a file using Xcode, it will be marked for commit. If you later delete it before the commit, you will end up with this error.

Solution 6 - Svn

I just deleted the file from within VS, then from 'Repository Explorer', I copied the file to the working copy.

Solution 7 - Svn

If you’re using TortoiseSVN…

From your commit window in the “Changes Made” section you can select all the offending files, then right-click and select delete. Finish the commit and the files will be removed from the scheduled additions.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMikeView Question on Stackoverflow
Solution 1 - SvnMartinStettnerView Answer on Stackoverflow
Solution 2 - SvnmmopyView Answer on Stackoverflow
Solution 3 - SvngbjbaanbView Answer on Stackoverflow
Solution 4 - SvnjoseView Answer on Stackoverflow
Solution 5 - SvnTotoroView Answer on Stackoverflow
Solution 6 - SvnBehzadView Answer on Stackoverflow
Solution 7 - SvnHowardView Answer on Stackoverflow