解决svn pritine text not exist问题

svn: E155032: The pristine text with checksum ‘$sha1$151400d1cd4c5fc190d500aa1826d45cb91f088f‘ not found

1) Get an sqlite executable (for Windows: download a pre-compiled binary from http://www.sqlite.com/download.html). Put it somewhere in your PATH.
1.从http://www.sqlite.com/download.html下载 for Windows: download a pre-compiled binary解压到.svn同级目录下(我的网盘->工具问题->sqlite-tools-win32-x86-3140100.zip)

2) Open a command prompt and go to the root of your working copy.
Execute:sqlite3 .svn\wc.db "select * from nodes where checksum like ‘%d9b41b57756396b9cb236801fc02e0da0a83dffe‘"
This should return exactly 1 row from the svn working copy database.
You can see in that row the local path that‘s related to that pristine file.
2.打开cmd进入.svn上级目录,执行 sqlite3 .svn\wc.db "select * from nodes where checksum like ‘%d9b41b57756396b9cb236801fc02e0da0a83dffe‘"
cmd将返回1条记录,你会看到关联的原始文件的路径等信息

3) Now execute:sqlite3 .svn\wc.db "update nodes set presence=‘not-present‘ where checksum like ‘%d9b41b57756396b9cb236801fc02e0da0a83dffe‘"
Now you‘ve changed the presence value of that particular row to "not-present", giving svn a chance to recover from the actually missing pristine file.
3.执行 sqlite3 .svn\wc.db "update nodes set presence=‘not-present‘ where checksum like ‘%d9b41b57756396b9cb236801fc02e0da0a83dffe‘"
改变了特定(not-present)行的值,使SVN从实际丢失的原始文件中恢复。

4) "svn cleanup" again. There might be more missing pristines. Repeat steps 2 and 3 for them.
4.右键svn cleanup,重复第二歩和第三歩

5) Finally:
svn update --force
This makes svn actually restore the pristines. The --force is there because svn will also try to install the working versions
of the "not-present" files. But those files are still there. Without --force you‘ll get tree conflicts on those files because of the "unversioned
obstructions" that svn thinks they are (because of "not-present" svn thinks they shouldn‘t be there).
5.最后更新svn

时间: 2024-12-20 18:02:36

解决svn pritine text not exist问题的相关文章

解决svn "cannot set LC_CTYPE locale"的问题

解决svn "cannot set LC_CTYPE locale"的问题 在ubuntu 8.10下安装的svn,在将Ubuntu的语言修改为英文之后,出现错误警告: $ svnsvn: warning: cannot set LC_CTYPE localesvn: warning: environment variable LANG is en_US.UTF-8svn: warning: please check that your locale name is correctTy

VS 下 解决SVN冲突- 项目加载失败

上篇我们同样介绍的VS 下 解决SVN冲突. 这一篇我们接着说另一种情况.当我们打开自己从SVN 上checkout下更改后的文件,会发现有时候提示我们项目加载失败. 解决办法是 一 将项目移除改解决方案.并关闭vs. 二打开文件夹.在移除的解决方案的跟文件夹下重新update. 三 重新打开就好啦. 这篇博客很简单,权当积累啦. 问题越多越好,解决问题才是提高.

解决SVN CONNOT VERIFY LOCK ON PATH NO MATCHING LOCK-TOKEN AVAILABLE

最近使用SVN,开发项目的时候,璞玉遇到一个问题.就是: connot verify lock on path  no matching lock-token available connot verify lock on path no matching lock-token available 错误    提交失败(细节如下): 错误    Connot verify lock on path 错误    ” ;no matching 错误    lock-token available 错

Android: 解决SVN更新项目后报错

解决SVN更新项目后报错 解决方法: 1.查看AndroidManifest.xml 和   project.properties文件是否配置正确,不正确 就修改适合当前开发环境的配置: 2.选择ADT的菜单项Project------------->clean  清理项目: 3.还不行的话,最后就重新打开ADT,基本上就解决了,再报错的话,那就是代码问题了,代码错误. PS: 项目不能生成R.java文件,Clean也不行的话,一定要看控制台输出的错误信息,根据错误信息去更改代码或文件,例如r

解决svn在win7下安装后右键无菜单项的问题

解决svn在win7下安装后右键无菜单的问题.该版本为1.8.10版本,其中包括安装包跟中文插件包,请先安装TortoiseSVN-1.8.10.26129-win32-svn-1.8.11.1420009704:然后安装LanguagePack_1.8.10.26129-win32-zh_CN.msi 下载无需积分,下载地址:http://download.csdn.net/detail/a358763471/9058629 注意事项:安装之前请确保已经卸载现有版本,并且最好用清理工具清一下注

解决svn Authorization failed错误

解决svn Authorization failed错误 (2010-09-22 21:37:31) 转载▼ 出现该问题基本都是三个配置文件的问题,下面把这个文件列出来 svnserve.conf:[general]anon-access = readauth-access = writepassword-db = passwdauthz-db = authz passwd:[users]admin=123 authz:[groups][/]admin= rw 出现authorization f

解决 SVN Skipped 'xxx' -- Node remains in conflict

svn 提交报错 提交命令: svn update 提示代码: Skipped 'test.php' -- Node remains in conflict At revision 271. Summary of conflicts: Skipped paths: 1 解决方法: svn remove --force test.php svn resolve --accept=working test.php svn update 提交成功! Updating '.': At revision

ZendStudio 解决svn导出项目乱码问题

从svn导出项目往往会出现乱码,可以右击项目,点击properties(或者选中项目alt+enter键进入)直接修改项目编码为utf-8,但是html文件还是乱码. 下面的方法可以解决: windows->preference->General->workplace,将右边的“text file encoding”修改为utf8格式 windows->preference->General->Editors->Text Editors->Spelling右

解决svn uuid变更问题

目的:站在程序员的角度学习SVNsvn服务器:Tigris svnsvn客户端:Tortoise svn 实验:第一步:建立我们本机的svn仓库:(核心)建立respository在win7上建立核心仓库,说白了就是在我们的系统上建立一个direction(目录)例如:我想把dir 建立在d 盘的share/respon/ 目录下打开cmd : cd d:cd share确认svn是否装好svn ;打这个命令会有一段提示svn help ;可以获得服务器和客户端的命令:接着:建立仓库:svnad