equal
deleted
inserted
replaced
2556 # logcmdutil.getlinerangerevs() for 'hg log -L'. |
2556 # logcmdutil.getlinerangerevs() for 'hg log -L'. |
2557 assert ( |
2557 assert ( |
2558 fctx2 is not None |
2558 fctx2 is not None |
2559 ), b'fctx2 unexpectly None in diff hunks filtering' |
2559 ), b'fctx2 unexpectly None in diff hunks filtering' |
2560 hunks = hunksfilterfn(fctx2, hunks) |
2560 hunks = hunksfilterfn(fctx2, hunks) |
2561 text = b''.join(sum((list(hlines) for hrange, hlines in hunks), [])) |
2561 text = b''.join(b''.join(hlines) for hrange, hlines in hunks) |
2562 if hdr and (text or len(hdr) > 1): |
2562 if hdr and (text or len(hdr) > 1): |
2563 yield b'\n'.join(hdr) + b'\n' |
2563 yield b'\n'.join(hdr) + b'\n' |
2564 if text: |
2564 if text: |
2565 yield text |
2565 yield text |
2566 |
2566 |