Teach pre-upload.py to accept a list of directories to work with.

In new versions of repo, the project name is not necessarily
a unique identifier, because the same project may be checked
out to multiple directories. Update pre-upload.py to handle
this by using the newly added parameter, worktree_list.

BUG=chromium:206946
TEST=Run it with the new version of repo and the old version of repo.

Change-Id: Ia5dfaf2d48dfb31dc9f6b435f68087c683d2f8c7
Reviewed-on: https://chromium-review.googlesource.com/172893
Reviewed-by: Aviv Keshet <akeshet@chromium.org>
Tested-by: David James <davidjames@chromium.org>
Commit-Queue: David James <davidjames@chromium.org>
1 file changed