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

后端 未结 21 1029
没有蜡笔的小新
没有蜡笔的小新 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:24

    The simplest that helped me:

    rm -rf _dir_in_question_
    svn up
    

    If you have changes in the problematic dir, then this is not a good solution for you.

    0 讨论(0)
  • 2021-01-29 19:26

    Didn't understand much from your posts. My solution is

    1. Cut the problematic folder and copy to some location.
    2. Do Get Solution From Subversion into another working directory (just new one).
    3. Add your saved folder to the new working copy and add it As Existing Project (if it's project as in my case).
    4. Commit;
    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2021-01-29 19:29

    A common task I experienced was having to take one repo directory in staging and copy it to another repo - both under SVN and both called the same name. The way that worked for me was the following:

    svn --force delete PROBLEMATIC-DIR
    svn export "https://OLD REPO-A/ new-repo-A"
    svn add new-repo-A
    svn commit new-repo-A
    
    0 讨论(0)
  • 2021-01-29 19:31

    I added a directory to svn, then I accidentally deleted the .svn folder within.

    I used

    svn delete --keep-local folderName
    

    to fix my problem.

    0 讨论(0)
  • 2021-01-29 19:33

    What I did to fix this was to delete the local copy of the folder under question and then do an svn update of the parent directly afterwards.

    Fixed it right up.

    0 讨论(0)
提交回复
热议问题