SVN commit error after deleting files locally

27,683

Solution 1

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

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.

Share:
27,683
Vincent Ramdhanie
Author by

Vincent Ramdhanie

Vincent is a Software Engineer with over 18 years of experience building software in a variety of environments. When not building software Vincent is a lecturer for the University of London's external programme. Since 2014 Vincent was a mentor for Thinkful.com helping students navigate their way to become web developers. He also contributes to the curriculum at Thinkful for React, Node and Data Science. 👨🏾‍💻 - Currently work at Teamflow 📬 - Email Me 🤔 - Mentor at Thinkful.com 👨🏾‍🏫 - I am a lecturer at SBCS Blog - Things I learn the hard way 🏡 - My home page

Updated on July 28, 2020

Comments

  • Vincent Ramdhanie
    Vincent Ramdhanie almost 4 years

    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?