Show More
@@ -2540,9 +2540,9 b' def trydiff(repo, revs, ctx1, ctx2, modi' | |||||
2540 | content2 = fctx2.data() |
|
2540 | content2 = fctx2.data() | |
2541 | if opts.git or losedatafn: |
|
2541 | if opts.git or losedatafn: | |
2542 | flag2 = ctx2.flags(f2) |
|
2542 | flag2 = ctx2.flags(f2) | |
2543 | binary = False |
|
2543 | # if binary is True, output "summary" or "base85", but not "text diff" | |
2544 | if opts.git or losedatafn: |
|
2544 | binary = not opts.text and any(f.isbinary() | |
2545 |
|
|
2545 | for f in [fctx1, fctx2] if f is not None) | |
2546 |
|
2546 | |||
2547 | if losedatafn and not opts.git: |
|
2547 | if losedatafn and not opts.git: | |
2548 | if (binary or |
|
2548 | if (binary or | |
@@ -2595,7 +2595,7 b' def trydiff(repo, revs, ctx1, ctx2, modi' | |||||
2595 | # yes | yes * * * | text diff | yes |
|
2595 | # yes | yes * * * | text diff | yes | |
2596 | # no | * * * * | text diff | yes |
|
2596 | # no | * * * * | text diff | yes | |
2597 | # [1]: hash(fctx.data()) is outputted. so fctx.data() cannot be faked |
|
2597 | # [1]: hash(fctx.data()) is outputted. so fctx.data() cannot be faked | |
2598 |
if binary and opts.git and not opts.nobinary |
|
2598 | if binary and opts.git and not opts.nobinary: | |
2599 | text = mdiff.b85diff(content1, content2) |
|
2599 | text = mdiff.b85diff(content1, content2) | |
2600 | if text: |
|
2600 | if text: | |
2601 | header.append('index %s..%s' % |
|
2601 | header.append('index %s..%s' % |
General Comments 0
You need to be logged in to leave comments.
Login now