25

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'

vise
  • 12,713
  • 11
  • 52
  • 64

4 Answers4

27

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.

Michael Krelin - hacker
  • 138,757
  • 24
  • 193
  • 173
13
  1. svn delete x
  2. svn ci -m'blah'
  3. svn update
  4. ln -s blee x
  5. svn add x
Jim Lebeau
  • 131
  • 1
  • 2
2
find . -type l | xargs -i -x svn propset svn:special on {}
Yates Zhou
  • 51
  • 4
1

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....

Jeff
  • 2,095
  • 25
  • 18