mark@mark-ubuntu:~/myproject$ svn stat ? runserver.sh ? media/images/icons ? apps/autocomplete mark@mark-ubuntu:~/myproject$ svn add apps/autocomplete svn: warning: 'apps/autocomplete' is already under version control
svn stat
says its not under version control, so I try to add it, and then it tells me it is. When I do an svn ci
, it doesn't get comitted, and doesn't show up when I try to browse to repository online.
How do I get it to commit?
The error means that you've tried to commit a file that is not under version control. You should svn add it first. However, there is a chance that you made some unintentional changes in your working copy. You must do svn update and analyze your local uncommitted modifications with svn status .
You right click on the directory, go to TortoiseSVN -> Delete. You then right click on the parent directory and SVN Commit... and that will remove the folder. This will delete the folder as well.
Copy problematic folder into some backup directory and remove it from your SVN working directory. Remember to delete all .svn
hidden directories from the copied folder.
Now update your project, clean-up and commit what has left. Now move your folder back to working directory, add it and commit. Most of the time this workaround works, it seems that basically SVN got confused...
Update: quoting comment by @Mark:
Didn't need to move the folder around, just deleting the
.svn
folder and then svn-adding it worked.
I had a similar-looking problem after adding a directory tree which contained .svn directories (because it was an svn:external in its source environment): svn status told me "?", but when trying to add it, it was "already under version control".
Since no other versioned directories were present, I did
find . -mindepth 2 -name '.svn' -exec rm -rf '{}' \;
to remove the wrong .svn directories; after doing this, I was able to add the new directory.
Note:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With