Commit symlink into subversion

后端 未结 4 1748
既然无缘
既然无缘 2020-12-15 04:19

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

相关标签:
4条回答
  • 2020-12-15 04:44
    find . -type l | xargs -i -x svn propset svn:special on {}
    
    0 讨论(0)
  • 2020-12-15 05:03

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

    0 讨论(0)
  • 2020-12-15 05:08

    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.

    0 讨论(0)
  • 2020-12-15 05:09
    1. svn delete x
    2. svn ci -m'blah'
    3. svn update
    4. ln -s blee x
    5. svn add x
    0 讨论(0)
提交回复
热议问题