I'm tring to commit a symlink into subversion, but I get this error when I try to add the actual symlink:
Can't replace 'path/to/symlink' with a node of a differing type; the deletion must be committed and the parent updated before adding 'path/to/symlink'
I read it as - you have to remove the file, commit, update, create symlink, add it, commit.
And my guess is that you're trying to remove the file, create symlink, commit in one go.
- svn delete x
- svn ci -m'blah'
- svn update
- ln -s blee x
- svn add x
The error I got on svn 1.6.11 reads
svn: Commit failed (details follow):
svn: Entry '/path/to/symlink' has unexpectedly changed special status
I fixed it by simply
svn propset svn:special on /path/to/symlink
And then rerunning the commit. Apparently no need to delete, update, etc....
find . -type l | xargs -i -x svn propset svn:special on {}
来源:https://stackoverflow.com/questions/1478428/commit-symlink-into-subversion