TortoiseSVN Won't Allow Me To Add Any Files

这一生的挚爱 提交于 2019-12-02 19:19:54

Happened to me couple of now many times with TortoiseSVN 1.8.2 - 1.8.10. I found this blog post which solved this problem once, until it pops up again. It annoyed me so much that I wrote a quick bat file script that I run from desktop.

Prerequisites

  1. Download and unzip sqlite3 shell tool, e.g. sqlite-shell-win32-x86-3080803.zip
  2. Adjust paths in the commands below to match your environment

Fix (manual)

Run this if you just want to test if this helps

  1. In CMD do C:\Downloads\sqlite3.exe "C:\src\.svn\wc.db"
  2. Once in sqlite shell run delete from WORK_QUEUE;
  3. Run tortoise svn clean up

Fix (automated)

If previous step worked for you, consider automating the process with these steps

  1. Go to your .svn folder, e.g. C:\src\.svn
  2. Copy sqlite3 shell tool there
  3. Create a fix-svn.bat file in that folder
  4. Insert scripting code, and adjust paths

    "C:\src\.svn\sqlite3.exe" wc.db "delete from WORK_QUEUE"
    "C:\Program Files\TortoiseSVN\bin\svn" cleanup "C:\src"
    
  5. Save bat file and make a shortcut to your desktop

  6. Next time you need to fix it, just run the shortcut on your desktop

The problem was I updated to version 1.8.1 which has a bug. I downloaded version 1.8.0 and it works fine.

Okay, I don't know if this may be an issue. I've sen this error happen when sparse checkouts are used. You can adjust what files you see during checkouts via the --depth flag and in updates via the --set-depth flag. If you --set-depth=exclude on certain files, you will see this error if you attempt to add a file.

Try this from the command line. From the ROOT of your working directory:

$ svn cleanup
$ svn update --set-depth=infinity
$ svn status

Make sure all three of these commands work. Then, try the commit.

Update to the release candidate has solved the problem for me.

sudo svn cleanup 

resolve my problem

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!