changeset 5367 | 7530334bf301 |
parent 4878 | 372d93f03d3a |
child 5482 | e5eedd74e70f |
--- a/mercurial/mdiff.py Wed Oct 03 16:50:32 2007 -0500 +++ b/mercurial/mdiff.py Wed Oct 03 17:17:27 2007 -0500 @@ -245,6 +245,9 @@ def get_matching_blocks(a, b): return [(d[0], d[2], d[1] - d[0]) for d in bdiff.blocks(a, b)] +def trivialdiffheader(length): + return struct.pack(">lll", 0, 0, length) + patches = mpatch.patches patchedsize = mpatch.patchedsize textdiff = bdiff.bdiff