Svn error “Previous operation has not finished”

前端 未结 13 1088
忘掉有多难
忘掉有多难 2021-02-01 16:30

This morning i was committing several items to a svn repository. During the commit operation my operating system crashed and now all svn commands (Including clean up) ends up wi

相关标签:
13条回答
  • 2021-02-01 17:19

    I am able to solve it in the following way.

    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 separte drive or separate location (out of svn directory)

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

    4) And,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)
  • 2021-02-01 17:23

    Open Totroise SVN Settings. Clear all data on Saved Data tab

    0 讨论(0)
  • 2021-02-01 17:25

    This happened to me - I didn't want to do anything as drastic as deleting my .svn file. However, svn cleanup in my IDE was not resolving the problem.

    What worked for me:

    1. Close IDE (don't know if this is needed, but it's a step I took)
    2. Open File Explorer
    3. Right click on your project
    4. Select TortoiseSVN -> Clean up...
    0 讨论(0)
  • 2021-02-01 17:26
    • Close all files or programs using anything from your repository (this will unlock the svn to cleanup)

    • Run 'svn cleanup' against your working copy (show us the result if it errors our)

    0 讨论(0)
  • 2021-02-01 17:27

    I tried all the solutions listed in this page, but my problem still didn't work out.

    I solved it by another way. Just in case some still didn't get a solution, try this (I'm using TortoiseSVN 1.9.5):

    1. Click "Clean up..." as usual and open cleanup popup

    2. check "Break locks"

    3. click "OK" button to execute

    0 讨论(0)
  • 2021-02-01 17:31

    Actually just found the answer to my question by looking here

    It seems that svn was stuck in the old operation. All of these operations are stored in the database wc.db in the .svn folder.

    By downloading SQLite to my checkout directory and running

    sqlite3.exe .svn/wc.db "select * from work_queue"
    

    from cmd

    i got a list of all pending operations. These operations are the ones "not finished" then by running

    sqlite3.exe .svn/wc.db "delete from work_queue"
    

    all of these pending operations are deleted and i can commit again. No need for a re checkout or anything

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