因為上次升級的Tortoise SVN 1.1.7版本感覺有時不太對勁,不如1.1.4穩定,所以回去前就升級到了1.20。結果發現原來用
BDB(Berkeley
DB)建的Repositry不能訪問了,報一個什麼BDB版本4.3不能操作資料庫的錯誤。但用檔案方式建的Repositry可以訪問,巨汗。鑒於時間匆忙,只好先建立一個檔案型的Repositry將就用。
回來以後搜尋了一下關於SVN的BDB Repositry版本問題,總算找到答案在這裡。
Use this procedure to upgrade your repository in-place to BDB 4.3:
- Make sure no process is accessing the repository (stop
Apache, svnserve, restrict access via file://, svnlook, svnadmin,
etc.)
- Using an older svnadmin binary (that is, linked to
an older BerkeleyDB):
- Recover the
repository: 'svnadmin recover /path/to/repository'
- Make a backup of the repository.
- Delete all unused log files. You can see them by running
'svnadmin list-unused-dblogs /path/to/repeository'
- Delete the shared-memory files. These are files in the
repository's db/ directory, of the form __db.00*
The repository is now usable by Berkeley DB 4.3.
下載了一個SVN 1.1.4(注意:不是Tortoise SVN),然後按文中的步驟完成以後,果然可以了。
特別警告:升級前一定要記得備份Repositry。
特別建議:平時最好養成定期備份Repositry的習慣。