SVN Endless Loop - [file] “does not exist in repository”

前端 未结 3 1666
予麋鹿
予麋鹿 2021-02-18 23:08

This has been plaguing me for a week.

SVN keeps telling me that a certain file \"does not exist in repository\".

Fine. Let\'s just delete it. Forg

3条回答
  •  我寻月下人不归
    2021-02-18 23:39

    I've had similar problems with corrupted working copies. Sometimes the working copies have a lot of pending changes but unable to checkin. To resolve this, I use the following approach (svn 1.7+):

    1. Checkout a fresh working copy into a new directory (path2)
    2. In the fresh working copy, if the offending file is there, delete it if needed.
    3. Commit the fresh working copy
    4. In the fresh working copy, delete everything except the .svn directory
    5. Copy everything from the old working copy except the .svn directory into the fresh working copy.
    6. Commit the fresh working copy again
    7. Delete (or backup) the old working copy
    8. Rename the fresh working to the old working copy (path2 to path)

提交回复
热议问题