Show More
@@ -78,10 +78,7 b' def unidiff(a, ad, b, bd, fn1, fn2, r=No' | |||||
78 | epoch = util.datestr((0, 0)) |
|
78 | epoch = util.datestr((0, 0)) | |
79 |
|
79 | |||
80 | if not opts.text and (util.binary(a) or util.binary(b)): |
|
80 | if not opts.text and (util.binary(a) or util.binary(b)): | |
81 | def h(v): |
|
81 | if a and b and len(a) == len(b) and a == b: | |
82 | # md5 is used instead of sha1 because md5 is supposedly faster |
|
|||
83 | return util.md5(v).digest() |
|
|||
84 | if a and b and len(a) == len(b) and h(a) == h(b): |
|
|||
85 | return "" |
|
82 | return "" | |
86 | l = ['Binary file %s has changed\n' % fn1] |
|
83 | l = ['Binary file %s has changed\n' % fn1] | |
87 | elif not a: |
|
84 | elif not a: |
General Comments 0
You need to be logged in to leave comments.
Login now