I was trying to do a svn cleanup
because I can\'t commit the changes in my working copy, and I got the following error:
sqllite: databas
sqlite3 .svn/wc.db "pragma integrity_check"
sqlite3 .svn/wc.db "reindex nodes"
sqlite3 .svn/wc.db "reindex pristine"
You may be able to dump the contents of the database that can be read to a backup file, then slurp it back into an new database file:
sqlite3 .svn/wc.db
sqlite> .mode insert
sqlite> .output dump_all.sql
sqlite> .dump
sqlite> .exit
mv .svn/wc.db .svn/wc-corrupt.db
sqlite3 .svn/wc.db
sqlite> .read dump_all.sql
sqlite> .exit
I copied over .svn folder from my peer worker's directory and that fixed the issue.
Throughout my researches, I've found 2 viable solutions.
If you're using any type of connections, ssh, samba, mounting, disconnect/unmount and reconnect/remount. Try again, this often resolved the problem for me. After that you can do svn cleanup or just keep on working normally (depending on when the problem appeared). Rebooting my computer also fixed the problem once... yes it's dumb I know!
Some times all there is to do is to rm -rf your files (or if you're not familiar with the term, just delete your svn folder), and recheckout your svn repository once again. Please note that this does not always solve the problem and you might also have changes you don't want to lose. Which is why I use it as the second option.
Hope this helps you guys!
Maybe, could be a solution:
Now, re-connect again:
repositorie
: mine SVN
( other case: git, etc)repositorie
folderNote:
On my case, I did a backup of my files. ( safe ur back :P )
Edit:
I am talking about SVN
plugin on Eclipse
:)
Do not waste your time on checking integrity
or deleting data from work queue
table because these are temporary solutions and it will hit you back after a while.
Just do another checkout
and replace the existing .svn folder with the new one. Do an update
and then it should go smooth.