fromupstream: Fix source_line/tag/changeline with multiple locations
If we launch the script with multiple locations, the source_line
("cherry picked from commit XXX") of all the patches show HASH from
the first commit.
This is because the _match_*() functions overwrite the content of the
arg dict, which is used by the next locations.
Lets restore the user provided arguments before the process of every
TEST=fromupstream.py -b=b:1234 -t="None" upstream://7945f929f1a77a1c8887a97ca07f87626858ff42 upstream://65048f4dd9fae7335b48ab23a879119c0e7fa10
Reviewed-by: Tzung-Bi Shih <firstname.lastname@example.org>
Tested-by: Ricardo Ribalda <email@example.com>
Commit-Queue: Ricardo Ribalda <firstname.lastname@example.org>
1 file changed