mercurial/patch.py
branchstable
changeset 44759 e58422afbc74
parent 44452 9d2b2df2c2ba
child 45072 a56ba57c837d
equal deleted inserted replaced
44748:a467416c493c 44759:e58422afbc74
  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