]> code.ossystems Code Review - openembedded-core.git/commit
buildhistory: Add simplistic file move detection
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 3 Jun 2020 15:01:02 +0000 (16:01 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 12 Jun 2020 17:12:46 +0000 (18:12 +0100)
commit791ce304f5e066759874beac0feef5ee62a1c255
tree16633a8e39a0615cc30d372b93b771b13bd4359f
parent49d0f822618890b61d2498b07dda6418f885321e
buildhistory: Add simplistic file move detection

We'd like to use buildhistory more during patch review however its
proving hard, particularly where whole subtrees of files move,
such as a kernel version upgrade, or where a software module moves
include directory.

This adds file rename matching which covers our common case of library
moves, kernel upgrades and more.

A new test case is also added so that someone in the future can change
the code and test the logic is still doing the expected things.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/buildhistory_analysis.py
meta/lib/oeqa/files/buildhistory_filelist1.txt [new file with mode: 0644]
meta/lib/oeqa/files/buildhistory_filelist2.txt [new file with mode: 0644]
meta/lib/oeqa/selftest/cases/oelib/buildhistory.py