SVN commit error after deleting files locally

SvnVersion ControlNetbeansCommit

Svn Problem Overview


I have a project that I am building with Netbeans 6.1 and I am using SVN. I deleted some files on the local machine then attempted to commit my changes to th SVN repository. The commit fails with the error message

> Entry for 'C:\path\to\project\myfile' has no URL

Where myfile is the deleted file.

Is there some way to tell SVN that the file was deleted from the project and that it should be deleted from the repository?

Svn Solutions


Solution 1 - Svn

An svn update will bring the file back, fixing your local repo.

You should then be able to do an "svn delete" on the file, which tells your local repo that the file is to be deleted, and also deletes it from the file system.

You should then be able to commit the changes back to the repo.

Solution 2 - Svn

If you are comitting a folder with the deleted file in it and supposing that you use the latest versions of Tortoise SVN (SVN GUI Client), it recognizes the particular file as missing and tries to delete from the SVN repo.

Solution 3 - Svn

I had the same problem and the reason was that I deleted the file externaly. If you delete it using NetBeans, then commit work fine.

Solution 4 - Svn

Deleting the project locally, rechecking out from SVN and committing the changes fixed it for me. Make sure to back up your changes before deleting the project.

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
QuestionVincent RamdhanieView Question on Stackoverflow
Solution 1 - SvnBenBView Answer on Stackoverflow
Solution 2 - SvnAzlamView Answer on Stackoverflow
Solution 3 - SvnKatapofaticoView Answer on Stackoverflow
Solution 4 - SvnkriverView Answer on Stackoverflow