I guess I was careless.
I added a bunch of files to svn with svn add
, then I saw a few files added that I didn't want so I deleted them with rm
.
Now I can't commit anymore because the commit is missing files. I tried svn cleanup but it didn't help.
My working option now is to manually delete every .svn directory but that seems wrong.
$ svn delete -m "Deleting file 'yourfile'" \ file:///var/svn/repos/test/yourfile Committed revision 15. Use the --keep-local option to override the default svn delete behavior of also removing the target file that was scheduled for versioned deletion.
right drag them to the new location inside the working copy. release the right mouse button. select Context Menu → SVN Add files to this WC. The files will then be copied to the working copy and added to version control.
To remove a file from a Subversion repository, change to the directory with its working copy and run the following command: svn delete file… Similarly, to remove a directory and all files that are in it, type: svn delete directory…
As I understand it you have this situation:
$ touch foo $ svn add foo A foo $ rm foo $ svn ci svn: Commit failed (details follow): svn: 'foo' is scheduled for addition, but is missing
So to fix it do this: (thanks Linus!)
$ svn revert foo Reverted 'foo'
or you can do this:
$ touch foo $ svn delete --force foo
for each file, and you should be able to check in without problems.
If you added a folder with sub-folders and files inside then you deleted the folder before you commit it. In this case you can do as the following.
$ svn revert <Deleted Folder Name> --depth infinity
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