我在水银源代码中找不到diff二进制代码 [英] I can't find the code for diff binary in mercurial source code

查看:93
本文介绍了我在水银源代码中找不到diff二进制代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在读取mercurial的源代码,但是我在bdiff.c和mdiff.py中看到的是处理文本,而不是二进制文件.但是他们说mercurial将所有文件都视为二进制文件.

I am reading source code of mercurial,but what I saw in bdiff.c and mdiff.py is processing text, not binary.but they said mercurial treat all files as binary.I am confused.

推荐答案

bdiff.cmdiff.py在二进制文件上都可以正常工作.由于它们依赖于换行符,因此它们不会为您提供最佳差异,但是它们可以正常工作(您不会丢失任何数据).

bdiff.c and mdiff.py both works perfectly fine on binary files. They won't give you optimal diffs since they rely on the presence of newlines, but they work correctly (you won't lose any data).

这篇关于我在水银源代码中找不到diff二进制代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆