PaReD: a patch relations detector for patchwork

Daniel Axtens dja at
Fri Sep 3 10:31:46 AEST 2021

Hi all,

I have written the simplest patch relation detector that might possibly
work as an API client. It is running against the patchwork and
linuxppc-dev projects on

It currently detects mails with identical subjects (after prefixes are
removed) within a 180 day window. This is not a very sophisticated
matching system, but given that it's an API client and not in the core,
I'm much happier to experiment and build up sophistication as and when
it's needed.

You can get the code at . I'm using
the same license as Patchwork, for a number of reasons, but in part
because we may one day want to migrate the functionality into the
patchwork core. Patches are welcome.

You can see some examples of where PaReD has set up meaningful relations


Some very obvious things that doing this has exposed:

 - the relations display should show the status of each related patch
   (e.g. New, Superseded, Accepted)

 - Series relations would make a lot of sense - probably even more sense
   from a human point of view - and we should probably build those at
   some point.

 - PaReD requires an API token for a maintainer account (much like for
   pushing checks) which is annoying and one day we should sort out
   fine-grained permissions.

Ask your patchwork instance admin if a maintainer account for PaReD is
right for you!

Kind regards,

More information about the Patchwork mailing list