findmissing: gerrit_interface: Reference originating commit if there is no BUG
If we are generating a CL against a previous commit into a ChromeOS branch,
and the offending patch does not have a BUG= entry or specifies BUG=None,
we want to have a reference against that CL in the commit message.
While at it, select last instead of first BUG= and TEST= message, in the
assumption that the last message in the file (if there is more than one)
is more relevant than the first.
TEST=Run on GCE
Reviewed-by: Curtis Malainey <email@example.com>
Commit-Queue: Guenter Roeck <firstname.lastname@example.org>
Tested-by: Guenter Roeck <email@example.com>
1 file changed