Subversion stuck due to “previous operation has not finished”?

后端 未结 29 2566
情歌与酒
情歌与酒 2020-12-12 08:48

If I try to update my subversion repo, it says I must run cleanup. If I run cleanup, it says a file is missing. (I deleted a MASSIVE directory of files that failed to commit

相关标签:
29条回答
  • 2020-12-12 09:32

    I had an error such as "Can't change perms of file '/Users/Code/UnitTest.cpp': No such file or directory". The subversion is confused about a file that is no longer there. I simply did something like "echo ABCD >> /Users/Code/UnitTest.cpp" to create a copy of the file, then cleanup. It worked.

    0 讨论(0)
  • 2020-12-12 09:32

    In Eclipse;

    1. Right click on your project folder > Team > Refresh/Cleanup.
    2. In Eclipse window, select clean option under Project menu item
    3. Finally, restart Eclipse
    0 讨论(0)
  • 2020-12-12 09:34

    follow below steps.

    1) Go to the directory where you are not able to successfully clean up via svn.(Root folder or child folder).

    2) Select .svn folder in the directory, cut that folder and paste it in the separate drive or separate location (out of svn directory)

    3) Now, go back to the directory - right click and select TortoiseSVN -->Repo-browser

    4) Checkout the folder(it will not perform fresh checkout).

    5) All your items will be versioned again, and it will repair the internal issue of svn, and problem should be solved.

    0 讨论(0)
  • 2020-12-12 09:35

    I've been in similar situations. Have you tried running cleanup from the root of your workspace? I know sometimes a cleanup from a child directory (where the problem lies) doesn't work, and cleanup from the root of the workspace does.

    If that still fails, since you had deleted a child dir somewhere. Try deleting 1 level higher from the child dir as well (assuming that is not the root), and re-trying update and cleanup.

    If cleanup attempts aren't succeeding at any level then the answer is unfortunately checkout a new working copy.

    0 讨论(0)
  • 2020-12-12 09:38

    I had tried the most voted answers here and a few others to no avail. My WORK_QUEUE table was empty and I wasn't able to try a clean up at a higher folder. What did work was the following (this is via Tortoise SVN);

    • Right click on folder
    • Go to TortoiseSVN -> Clean Up...
    • Make sure the option to Break Locks is ticked and click OK

    The Clean Up operation now completes successfully and I can continue. No downloading of sqlite3 or other convoluted solutions required.

    0 讨论(0)
  • 2020-12-12 09:38

    Trying to run cleanup while your files are open gave me problems. as soon as I closed my application (Visual studio) I ran clean up and it was successful

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