I can't find the code for diff binary in mercurial source code [closed]

南楼画角 提交于 2019-12-11 17:35:51

问题


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.


回答1:


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).



来源:https://stackoverflow.com/questions/10892125/i-cant-find-the-code-for-diff-binary-in-mercurial-source-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!