Commit symlink into subversion

匿名 (未验证) 提交于 2019-12-03 01:06:02

问题:

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'

回答1:

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.



回答2:

  1. svn delete x
  2. svn ci -m'blah'
  3. svn update
  4. ln -s blee x
  5. svn add x


回答3:

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



回答4:

find . -type l | xargs -i -x svn propset svn:special on {}


转载请标明出处:Commit symlink into subversion
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!