Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I change svn status?

Tags:

svn

add

Sometimes I want to add a folder into svn with svn add my_folder but then I change my mind and don't want to commit this. It seems that svn remembers this pending addition forever! If I make a mistake and move, remove or rename the file, svn status will still show that this folder is scheduled for addition after the next commit and will produce an error.

I have tried svn update and a clean checkout. The problem is, that svn update usually doesn't work, svn checkout not always works and if it does, it is very troublesome.

Any ideas?

Thanks in advance!

like image 872
Siato Avatar asked Jan 19 '23 04:01

Siato


2 Answers

Try:

svn revert --recursive my_folder

It will undo your svn add recursively

like image 182
ryanprayogo Avatar answered Feb 16 '23 21:02

ryanprayogo


svn delete --keep-local does the trick for files and also should for directories.

like image 34
thiton Avatar answered Feb 16 '23 22:02

thiton