devtools: report commit ID on partial fixes

The candidate list for backports lists partial fixes like:
 "(21.02 (partially fixed in 21.08))"
That is useful to identify fixes meant for later releases, but
indirectly applying to older ones as well.

While the devscript has no access to the stable tree to fully check
if the respective interim commit is present there, reporting the commit
id will still help to check it later - because only if the interim commit
id is in the stable tree, then also the new fix is a real candidate
for backporting.

The above would become "(21.02 (partially fixed in c30751afc3 @ 21.08))"

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Acked-by: Luca Boccassi <bluca@debian.org>
Acked-by: Kevin Traynor <ktraynor@redhat.com>
Acked-by: Xueming Li <xuemingl@nvidia.com>
This commit is contained in:
Christian Ehrhardt 2021-12-03 08:54:15 +01:00 committed by Thomas Monjalon
parent 78bdab094b
commit cee226c934

View File

@ -76,7 +76,7 @@ origin_version () # <origin_hash> ...
# look chained fix of fix recursively # look chained fix of fix recursively
local rootver="$(origin_version $roothashes)" local rootver="$(origin_version $roothashes)"
[ -n "$rootver" ] || continue [ -n "$rootver" ] || continue
echo "$rootver (partially fixed in $origver)" echo "$rootver (partially fixed in $origin @ $origver)"
else else
echo "$origver" echo "$origver"
fi fi