What should I do when 'svn cleanup' fails?

后端 未结 30 1498
谎友^
谎友^ 2020-12-04 04:50

I have a lot of changes in a working folder, and something screwed up trying to do an update.

Now when I issue an \'svn cleanup\' I get:

>svn clea         


        
30条回答
  •  失恋的感觉
    2020-12-04 05:24

    Things have changed with SVN 1.7, and the popular solution of deleting the log file in the .svn directory isn't feasible with the move to a database working-copy implementation.

    Here's what I did that seemed to work:

    1. Delete the .svn directory for your working copy.
    2. Start a new checkout in a new, temporary directory.
    3. Cancel the checkout (we don't want to wait for everything to get pulled down).
    4. Run a cleanup on this cancelled checkout.
    5. Now we have a new .svn directory with a clean database (although no/few files)
    6. Copy this .svn into your old, corrupted working directory.
    7. Run svn update and it should bring your new partial .svn directory up to speed with your old working directory.

    That's all a little confusing, process wise. Essentially, what we're doing is deleting the corrupt .svn then creating a new .svn for the same checkout path. We then move this new .svn to our old working directory and update it to the repo.

    I just did this in TSVN and it seems to work fine and not require a full checkout and download.

    -Jody

提交回复
热议问题