svn 清理:sqlite:数据库磁盘映像格式错误 [英] svn cleanup: sqlite: database disk image is malformed

查看:90
本文介绍了svn 清理:sqlite:数据库磁盘映像格式错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试执行 svn 清理,因为我无法在工作副本中提交更改,并且出现以下错误:

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:数据库磁盘映像格式错误

sqllite: database disk image is malformed

我现在能做什么?

推荐答案

首先,在存储库根目录(包含 .svn 作为子文件夹):

First, open command/terminal at repository root (folder which has .svn as child folder):

cd /path/to/repository

下载sqlite3 并放置可执行的sqlite3在文件夹的根目录.

Download sqlite3 and put executable sqlite3 at root of folder.

您对跟踪存储库的 sqlite 数据库进行完整性检查 (/path/to/repository/.svn/wc.db):

You do an integrity check on the sqlite database that keeps track of the repository (/path/to/repository/.svn/wc.db):

sqlite3 .svn/wc.db "pragma integrity_check"

那应该会报告一些错误.

That should report some errors.

然后您可以通过执行以下操作来清理它们:

Then you might be able to clean them up by doing:

sqlite3 .svn/wc.db "reindex nodes"
sqlite3 .svn/wc.db "reindex pristine"

如果之后仍有错误,您仍然可以选择将存储库的新副本签出到临时文件夹,并将 .svn 文件夹从新副本复制到旧文件夹.然后旧副本应该可以再次工作,您可以删除临时文件夹.

If there are still errors after that, you still got the option to check out a fresh copy of the repository to a temporary folder and copy the .svn folder from the fresh copy to the old one. Then the old copy should work again and you can delete the temporary folder.

这篇关于svn 清理:sqlite:数据库磁盘映像格式错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆