Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to undo an -R status (marked for deletion) in SVN

Tags:

svn

I'm trying to add a_folder to SVN but I accidentally scheduled my root directory for deletion:

[phil@sessions www]$svn status
R      .
A      a_folder

I can't commit a_folder's adding because...

[phil@sessions www]$ svn commit a_folder-m "adding"
svn: Commit failed (details follow):
svn: '/home/phil/www' is not under version control and is not part of the commit, yet its child '/home/phil/www/a_folder' is part of the commit

If I try "svn add ." I get "www is already under version control". How can I remove this status so that I can go on with my life?

like image 552
pg. Avatar asked Aug 19 '10 00:08

pg.


People also ask

How remove deleted file from svn?

If you are using TortoiseSVN, just do a Check for Modifications, sort by the Status column, select all the entries marked missing , right-click to open the context menu, and select Delete. Finally, commit to publish the changes to the repository.

What does Revert command do in svn?

Reverts any local changes to a file or directory and resolves any conflicted states. svn revert will not only revert the contents of an item in your working copy, but also any property changes.


2 Answers

svn revert .

like image 192
Ether Avatar answered Sep 30 '22 17:09

Ether


My problem was in a single folder, so I resolve in this way:

cd Project
svn revert Folder
cd Folder
svn add --force .
cd .. && svn commit -m "resolved svn inconsistency"

Here a usefull link with the list of all status.

like image 41
Luca Davanzo Avatar answered Sep 28 '22 17:09

Luca Davanzo