简体   繁体   English

提交时SVN校验和错误

[英]SVN check sum error on commit

before i used ubuntu 11.04 and everything go well with svn. 在我使用ubuntu 11.04之前,svn一切正常。 Two weeks ago, I switched to CentOS 6 and the problems appears. 两周前,我切换到CentOS 6,问题出现了。

this is svn infos : 这是svn信息:

$ svn --version
svn, version 1.6.15 (r1038135)
    compilé Mar 24 2011, 08:25:37

$ yum info subversion
Loaded plugins: fastestmirror, refresh-packagekit
Installed Packages
Name       : subversion
Arch       : i686
Version    : 1.6.15
Release    : 0.1.el6.rfx
Size       : 21 M
Repo       : installed
From repo  : rpmforge-extras
Summary    : Modern Version Control System designed to replace CVS
URL        : http://subversion.tigris.org/
License    : BSD

error datails : 错误数据错误:

svn: Checksum mismatch for '/www/project/.svn/text-base/blah.ext'; 
expected: 'af3389a068d0747a549fc72fa5e6442c', actual: 'd60bf8195117a60415ff63e29813b8a2'

I have solved this probleme first time in few steps: 我已经通过几个步骤第一次解决了这个问题:

-copy and rename /www/project/blah.ext
-svn remove blah.ext
-svn ci -m ""
-rename blah.ext
-svn add blah.ext
-svn ci -m ""

But i can not do this all the time when I want to commit 但是当我想提交时,我不能一直这样做

When you did this did you just copy your working directory over to the new machine or did you check the entire structure out? 当您这样做时,您只是将工作目录复制到新机器上还是检查了整个结构?

If this is happening regularly, I would gather a diff of any work you have on this working copy, preserve it, obliterate the working copy, check it out anew, apply the patch of your diff and see how you're doing then. 如果这种情况经常发生,我将收集您对该工作副本所做的任何工作的差异,保存,清除工作副本,重新进行检查,应用差异补丁并查看您的情况。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM