A long time ago I had the following directory structure in my SVN repository
trunk/
data/
levels/
1.level
2.level
...
...
...
But I deleted the 'levels' directory long ago. Now I want to add a single text file called 'levels' to the 'data' directory, so it will look like this:
trunk/
data/
levels
...
...
Now when I try to add the file 'levels', I get this message:
$ svn add data/levels
svn: Can't replace 'data/levels' with a node of a differing type; the deletion m
ust be committed and the parent updated before adding 'data/levels'
How can I solve this?
Try running svn update. That will update the current folder's revision number and all associated metadata. You should also make sure svn status doesn't display anything related to this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With