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

后端 未结 29 2565
情歌与酒
情歌与酒 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:29

    I was facing this problem after adding a jar which is already in the SVN and I added the new Version of it with the same name.

    In Eclipse I tried this

    1. Right click on folder > Team > Refresh/Cleanup.
    2. Clean, build and refresh my application.
    3. Restart the Eclipse.

    Using above steps I am able to Synchronize.

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

    I have seen several issues with svn, including this one, solved by deleting/creating an .svn/tmp directory. Then run svn cleanup

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

    I resolved this error today when it occurred trying to Commit to SVN. The error was genuine, TortoiseSVN could not access a file which I tried to Commit. This file had been saved while running a program "As Administrator" in Windows. This means the file has Administrator access but not access from my account (TortoiseSVN running as interactive user). I took ownership of the nominated file under my windows account and after that Cleanup was able to proceed.

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

    I use tortoise SVN. When clean up failed, check cleanup option

    Make sure the option to Break Locks is checked.

    Cleanup step

    • left mouse button in explore folder
    • select 'Tortoise SVN' -> 'Clean up...' menu
    • check 'Break Locks' checked and press 'ok'

    It already answered ,but sometimes picture helps

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

    This can happen when you have files still open when you try to SVN switch / cleanup.

    I had a branch where I had created a new file, which I had open in another application. Switching to another branch could not remove the file causing the switch to fail. This was also causing the svn cleanup to fail, however this is not displayed as the reason in the Tortoise SVN UI.

    Running svn cleanup from a console window (on the root folder) clearly shows the error file\location\file.ext: The process cannot access the file because it is being used by another process

    Closing any open file handles / windows and running the console svn cleanup then allows the cleanup to work correctly.

    Long story short - run svn cleanup in the console to see a more detailed error.

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

    I had the same issue, what worked for me:

    1. Copy your folders and files to another place, say to a folder (I changed my files recently and the commitment failed and led to the addressed problem)
    2. check out a new working copy
    3. copy your changed files from folder to your working copy and override existing files. Commiting / Updating should work now
    0 讨论(0)
提交回复
热议问题