You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
depot_tools/tests
Ravi Mistry 0f13273f1f Add support for Gerrit topics in gclient syncs
If the new flag "--download-topics" is specified with a "--patch-ref" then:
* Finds the topic of the Gerrit change.
* Finds all open changes in the same repo as the Gerrit change.
* Cherrypicks all changes locally.

This functionality can be used by developers and bots to apply all changes with the same topic in the checkout to be tested at the same time (similar to how Android's TreeHugger handles topics).


Tested by:

* Running the new unit test with `python gclient_scm_test.py GerritChangesTest.testDownloadsTopics` from the `tests/` directory.

* Running an end-to-end test with `DEPOT_TOOLS_UPDATE=0 gclient sync --patch-ref "skia@d831da5b8ac2d257c5b0cf2ec6645a148f05e662:refs/changes/17/505217/2" --download-topics` in a skia checkout.


Bug: chromium:1298922
Change-Id: Ieace5e27fbc9c5d0ea90a037bf80a95062c1b164
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3444003
Reviewed-by: Josip Sokcevic <sokcevic@google.com>
Commit-Queue: Ravi Mistry <rmistry@chromium.org>
4 years ago
..
gstools
OWNERS
PRESUBMIT.py
auth_test.py
bot_update_coverage_test.py Use pylint 2.7 for depot_tools 4 years ago
cipd_bootstrap_test.py
detect_host_arch_test.py
download_from_google_storage_unittest.py Use pylint 2.7 for depot_tools 4 years ago
fetch_test.py Fix depot_tools tests when running without py2 4 years ago
fix_encoding_test.py Make fix_encoding_test py3 compatible 4 years ago
gclient_cipd_smoketest.py
gclient_eval_unittest.py
gclient_git_mutates_smoketest.py
gclient_git_smoketest.py
gclient_paths_test.py
gclient_scm_test.py Add support for Gerrit topics in gclient syncs 4 years ago
gclient_smoketest.py
gclient_smoketest_base.py Use pylint 2.7 for depot_tools 4 years ago
gclient_test.py Revert "Remove unused functionality in bot_update.py" 4 years ago
gclient_transitions_smoketest.py
gclient_utils_test.py
gerrit_client_test.py Add a 'setlabel' command to gerrit_client.py 4 years ago
gerrit_util_test.py
git_cache_test.py
git_cl_creds_check_report.txt
git_cl_test.py Support py3 in post upload presubmit hooks 4 years ago
git_common_test.py Fix git_common_test.py: git checkout -tb -> git checkout -t -b 4 years ago
git_dates_test.py
git_find_releases_test.py Use pylint 2.7 for depot_tools 4 years ago
git_footers_test.py
git_hyper_blame_test.py
git_map_test.py
git_migrate_default_branch_test.py Use pylint 2.7 for depot_tools 4 years ago
git_number_test.py
git_rebase_update_test.py Fix depot_tools tests when running without py2 4 years ago
gsutil_test.py
lockfile_test.py
metrics_test.py
my_activity_test.py Require certifi package and python3 in my_activity 4 years ago
ninjalog_uploader_test.py fix ninjalog_uploader.py 4 years ago
owners_client_test.py
owners_finder_test.py
owners_unittest.py
presubmit_unittest.py Support py3 in post upload presubmit hooks 4 years ago
rdb_wrapper_test.py
recipes_test.py add vpython3 to tests that run under vpython3 4 years ago
roll_dep_test.py
scm_unittest.py
split_cl_test.py
subcommand_test.py
subprocess2_test.py Use pylint 2.7 for depot_tools 4 years ago
upload_to_google_storage_unittest.py Set cache-control when uploading to google storage 4 years ago
watchlists_unittest.py