Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はmercurialのソースコードを読んでいますが、bdiff.cとmdiff.pyで見たのはバイナリではなくテキストを処理しています.しかし、彼らはmercurialがすべてのファイルをバイナリとして扱うと言いました.私は混乱しています.
bdiff.cどちらもバイナリファイルで完全に機能しmdiff.pyます。改行の存在に依存しているため、最適な差分は得られませんが、正しく機能します (データが失われることはありません)。
bdiff.c
mdiff.py