Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN Can't revert 'mydir' without reverting parent

Tags:

svn

I just wanted to revert a whole directory so I typed:

svn revert mydir

Then I realized it was wrong and it should have been:

svn -R revert mydir

After typing this last command I receive the error "svn: E155038: Can't revert 'mydir' without reverting parent".

I've moved to 'mydir' and then try the svn -R revert . but still it returns the same error.

How can I revert this directory recursively so I can get the previous version from the server?

like image 661
Israel Varea Avatar asked May 15 '14 10:05

Israel Varea


1 Answers

The problem is that 'mydir' was not added to the SVN yet so there was not a previous version to revert to. If you revert parent directory you will lose any changes done in 'mydir' directory.

like image 61
Israel Varea Avatar answered Sep 21 '22 16:09

Israel Varea