HomePhabricator

diff: pass a diff hunks filter function from changeset_printer to patch.diff()

Authored by dlax.

Description

diff: pass a diff hunks filter function from changeset_printer to patch.diff()

We add a 'hunksfilterfn' keyword argument in all functions of the call
stack from changeset_printer.show() to patch.diff(). This is a callable
that will be used to filter out hunks by line range and will be used in
the "-L/--line-range" option of "hg log" command introduced in the
following changesets.

Details

Committed
dlaxOct 6 2017, 8:45 AM
Parents
rHG35c6a54ec1ff: diff: also yield file context objects in patch.trydiff() (API)
Branches
Unknown
Tags
Unknown