Fix common SVN errors

Posted under » Version Control on 20 April 2020

#1. Database is locked, cannot release

This often happens when you are doing `svn update' and then you terminate it half way.

$ cd /my/repository/.svn
$ mv wc.db wc.db.old
$ sqlite3 wc.db.old
sqlite> .backup main wc.db
sqlite> .exit
svn cleanup

#2 Node remains in conflict

This happens when you have modified files and then you `svn update'.

First delete the current ones that are in conflict. After that do this

List all conflicts

svn status | grep -P '^(?=.{0,6}C)'

Run svn revert FILENAME to throw away all of the local changes.

svn revert var/taik.jpg

This should work. If this fail delete them. Then,

$ svn up
# $ svn resolve --accept=working var/taik.jpg
$ svn resolve taik.jpg
$ svn up

This will resolve the error.

web security linux ubuntu python django git Raspberry apache mysql php drupal cake javascript css AWS data