Domanda

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?

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top