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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top