git svn rebase出现了checksum mismatch的错误

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

 

作者:Chuck Lu    GitHub    
posted @   ChuckLu  阅读(1149)  评论(0编辑  收藏  举报
编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
历史上的今天:
2014-10-30 8.2.2继承 第8章 面向对象编程简介
2014-10-30 单例模式和静态类的区别
点击右上角即可分享
微信分享提示