How to fix “containing working copy admin area is missing” in SVN?

后端 未结 21 1034
没有蜡笔的小新
没有蜡笔的小新 2021-01-29 19:10

I deleted manually a directory I just added, offline, in my repository. I can\'t restore the directory.

Any attempt to do an update or a commit will fail with:

21条回答
  •  迷失自我
    2021-01-29 19:27

    I came across this problem when replacing a third party API library with a newer version, and none of the solutions here really worked for me because I wanted to replace the SVN version with the local version. My solution was as follows:

    1) Move the offending folder to my home dir, delete it from SVN and commit:

    mv foldercausingproblem ~/
    svn --force delete foldercausingproblem
    svn commit --message "Temporary removing folder with old API"

    2) Put the folder back, add it to SVN and commit again:

    mv ~/foldercausingproblem ./
    svn --force add .
    svn commit --message "Finally all working!"

    Slightly irritating to have to commit twice, but it seems to have worked fine.

提交回复
热议问题