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 <email@example.com>
Tested-by: Ricardo Ribalda <firstname.lastname@example.org>
Commit-Queue: Ricardo Ribalda <email@example.com>
1 file changed