Repository not deleted completely, SVN status gives me exclamation points

Asked

Viewed 262 times

1

We’re using SVN as versioning system for a website we’re building for the school but I have some problems.

A colleague of mine had created a folder that I later tried to delete, but it doesn’t seem to be deleted. And when I do svn status, this appears to me:

!       sengineering
!       sengineering/images
!M      sengineering/images/The_C_Programming_Language_2_ed.png
!M      sengineering/images/W3C®_Icon.svg.png
!M      sengineering/images/cs_go_scene.jpg
!M      sengineering/images/history.png
!M      sengineering/images/lambda.png
!M      sengineering/images/oop.png
!       sengineering/languages
!       sengineering/languages/languages.html
!       sengineering/languages/languages_evolution.html
!       sengineering/languages/most_important_pl.html
!       sengineering/languages/programming_language.html
!       sengineering/multitask.html
!       sengineering/sengineering.html 

sengineering was the folder I tried to delete.

I saw that the exclamation mark is related to the fact that I don’t have this folder, but how do I make a checkout again the specific folder, or how do I delete it completely?

  • 1

    The svn status is saying that the folder exists in the repository but does not exist on your machine as you have deleted it from your desktop. In addition to deleting the folder locally, you also need commit this removal.

  • It looks like you have pending commit deletions and additions. You have other local changes that you intend to commit in addition to this deletion?

  • I ask about your intention: do you want to commit more than one exclusion? If not, try downloading the entire repository to another folder and deleting it by URL, which commits the changes immediately. Then (if it all worked out) you redo your original workbook (delete and download all over again) and ball forward.

  • The revert is for you to give up local changes; that is, you don’t ever want to send it to the server. Unrelated to irreversibly changing the repository on the server.

1 answer

1

To delete a folder or directory from SVN (Subversion) committing immediately delete this, use the command svn delete passing the URL of the folder to the repository instead of passing the local folder path. So:

svn delete -m "comentário..." svn://servidor/repo/pasta/pasta_a_deletar

The last parameter being the URL, which may have some variations: file:///... or http://dominio.... Use the URL you’re used to using in your other operations.

  • That eliminates location and commits in a single operation.

  • The -m is to indicate the message, the comment you are required to make when deleting something. What determines that the deletion is immediate in the repository is that you indicate the URL of the folder in the repository instead of indicating the local path of the folder.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.