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

BUG=none -b=b:1234 -t="None" upstream://7945f929f1a77a1c8887a97ca07f87626858ff42 upstream://65048f4dd9fae7335b48ab23a879119c0e7fa10

Change-Id: I7c498ac62cfde1339ddc50257f97067451ae1f18
Reviewed-by: Tzung-Bi Shih <>
Tested-by: Ricardo Ribalda <>
Commit-Queue: Ricardo Ribalda <>
1 file changed