码迷,mamicode.com
首页 > 其他好文 > 详细

git svn rebase出现了checksum mismatch的错误

时间:2015-10-30 10:47:32      阅读:148      评论:0      收藏:0      [点我收藏+]

标签:

http://stackoverflow.com/questions/3156744/git-svn-rebase-checksum-mismatch

This solution was the only one that worked for me:

See what was the revision number of the last change on the file:

git svn log chrome/test/functional/search_engines.py

Reset svn to be closest parent before that revision:

git svn reset -r62248 -p

Do a git svn fetch!

Dance at your success.

 

 

When I update suuuuuper old Chromium repositories, I occasionally get that stupid Checksum mismatch from svn. It happens often enough that it‘s a thing, but uncommonly enough that I forget how to fix it each time. So, FOR PROSPERITY:

Checksum mismatch: trunk/src/chrome/test/functional/search_engines.py 5d1082dfc3e6363ece792d7cd49fde0a7ce9c6df
expected: e88e3ea6349cb44955d58e6a3964824f
got: af58cced63097504e4bfb6574c252f4a

Then proooobably what happens was search_engines.py downloaded wonky or something such that the hash no longer came to be the correct thing. So solution:

See what was the revision number of the last change on the file:
git svn log chrome/test/functional/search_engines.py

Reset svn to be closest parent before that revision:
git svn reset -r62248 -p

Do a git svn fetch!

Dance at your success.

 

总结:

出现这个情况,原因是,在同步svn服务器代码的时候出错了,仔细查看结果,发现同步到的对应文件的最后一次提交,更新失败了。

但是,那一次提交仍然被记录下来。

$ git svn rebase
Checksum mismatch: ZITaker/UI/TableForm.cs
expected: 1d341c96dacd486b6f071461b791f209
    got: 605022e72af5d950f6cd32ad5fd157aa

找到TableForm.cs文件的最后一次日志的svn版本号,目前找到是1701

使用git svn reset -r1701 -p

 

git svn rebase出现了checksum mismatch的错误

标签:

原文地址:http://www.cnblogs.com/chucklu/p/4922366.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!