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
Jamie Madill 812ac228e3 git-cl: Add diff lines of context setting.
Clients using some Clang-Format options can run into bugs when using
0 lines of context. AlignConsecutiveAssignments in particular is picky
and behaves differently with 0 lines of context.

This behaviour lead to 'git cl format' behaving differently from
'git cl format --full'. That could also break presubmit format checks.
Using >0 lines of context for 'git diff' fixes the inconsistency.

Add a setting 'DIFF_LINES_OF_CONTEXT' that can be controlled via
codereview.settings. Defaults to zero to preserve the old behaviour.
The setting allows the client to control the number of lines of context
to use when running 'git cl format'.

Bug: angleproject:4003
Change-Id: Ied2ebf23df4c41ba19bfbd5b8ddf526b56a20b31
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1864309
Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
6 years ago
..
gstools Scripts to download files from google storage based on sha1 sums 12 years ago
OWNERS [ninjalog_uploader] add tests 7 years ago
auth_test.py Use assertEqual() rather than assertEquals() in Python tests. 6 years ago
bot_update_coverage_test.py Use assertEqual() rather than assertEquals() in Python tests. 6 years ago
cipd_bootstrap_test.py [cipd] Add presubmit support for checking *.digests file. 7 years ago
download_from_google_storage_unittest.py Make download_from_google_storage_unittest.py work with Python 3. 6 years ago
fix_encoding_test.py Use assertEqual() rather than assertEquals() in Python tests. 6 years ago
gclient_eval_unittest.py Add support for multi argument ands and ors, and the same precedence with 6 years ago
gclient_scm_test.py Add logging to bot_update.py and gclient_scm.py 6 years ago
gclient_smoketest.py Make gclient.py warn on Python 3 6 years ago
gclient_test.py Reland "gclient_utils: buffer output as bytestrings in Annotated" 6 years ago
gclient_utils_test.py Reland "gclient_utils: buffer output as bytestrings in Annotated" 6 years ago
git_cache_test.py depot_tools: Run git_cache_test and git_footers_test on windows. 6 years ago
git_cl_creds_check_report.txt git cl creds-check: improve report and give better recommendation. 8 years ago
git_cl_test.py git-cl: Add diff lines of context setting. 6 years ago
git_common_test.py git-common: Explicitly specify utf-8 when encoding. 6 years ago
git_dates_test.py Use assertEqual() rather than assertEquals() in Python tests. 6 years ago
git_drover_test.py git-drover: Fix tests to run on Python 3. 6 years ago
git_footers_test.py depot_tools: Run git_cache_test and git_footers_test on windows. 6 years ago
git_hyper_blame_test.py git-hyper-blame: Make tests run on Python 3. 6 years ago
git_number_test.py git-number: Make tests run on Python 3. 6 years ago
git_rebase_update_test.py Use assertEqual() rather than assertEquals() in Python tests. 6 years ago
gsutil_test.py Use assertEqual() rather than assertEquals() in Python tests. 6 years ago
metrics_test.py depot_tools: Run some tests on Python 3 on the bots. 6 years ago
ninjalog_uploader_test.py [ninjalog] fully anonymize build stats before sending 7 years ago
owners_finder_test.py Skip files owned by reviewers when quering for missing owners. 8 years ago
owners_unittest.py Use assertEqual() rather than assertEquals() in Python tests. 6 years ago
presubmit_unittest.py python3 improvements 6 years ago
recipes_test.py [recipes] Remove deprecated (ignored) --use-bootstrap flag 7 years ago
roll_dep_test.py roll-dep: Use gclient setdep/getdep. 7 years ago
scm_unittest.py depot_tools: Run some tests on Python 3 on the bots. 6 years ago
subprocess2_test.py depot_tools: Run some tests on Python 3 on the bots. 6 years ago
upload_to_google_storage_unittest.py Make upload_to_google_storage.py and tests work with Python 3. 6 years ago
watchlists_unittest.py depot_tools: Make watchlist tests use mock and remove pymox. 6 years ago