svk校验和不匹配

时间:2009-04-30 20:12:26

标签: version-control svk

过去6个月我一直在使用SVK而没有任何问题。然后,当发生以下错误时,我尝试提交文件:

%> svk commit -m "Message" foo/bar/file.txt
Commit into mirrored path: merging back directly.
Merging back to mirror source file:///usr/local/svn/repo.
A checksum mismatch occurred: Base checksum mismatch on '/trunk/foo/bar/file.txt':
   expected:  9e421f7db5c4c0d6796c90524456d7f4
     actual:  ed4e76ccf3e54223908179735ecf1e89

任何人都知道如何解决此问题?

1 个答案:

答案 0 :(得分:1)

只需 svk up -s ,在此处找到答案:

Working with SVK in a multi-user environment

  

... svk up   不足以确保您的仓​​库   反映了最新的变化   远程存储库。相反,你必须   执行svk同步(请参阅svk帮助同步   有关选项的信息)   使当地的仓库更新,或   将-s开关传递给svk到   达到同样的效果......

# alternative 1:
svk sync //mirrors/mirrored_repo_name
svk up

# alternative 2:
svk up -s