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
Aaron Gable 9387b4f0be Make gerrit 'git cl patch' use hard reset by default
This CL changes the way that "git cl patch" behaves for Gerrit changes.

Previously, git-cl-patch behaved just like it did for Rietveld:
make sure you're on a branch, download the diff, apply it on top
of your branch. However, this causes problems with Gerrit. Namely,
when you upload a change to Gerrit, git-cl has to make sure that all
parents of your local change have previously been uploaded as well,
either as other changes or as commits already landed on the target
branch. But the method for "applying a patch" from Gerrit was to
cherry-pick it, and that changes the commit hash. So the resulting
commit would *not* have been uploaded to Gerrit. Thus, the
following routine didn't work with Gerrit:
$ git checkout -t origin/master -b your-work
$ git cl patch 123456
$ git checkout -tb my-work
$ #hack and commit
$ git cl upload
This would fail during the upload with a message saying that the
contents of 'your-work' hadn't been uploaded.

This CL fixes the situation by replacing the cherry-pick with
a hard reset. This means that the contents of the 'your-work'
branch will be *exactly* what was downloaded from Gerrit. Uploads
based on top of that commit will work just fine.

Finally, in a concession to some people who want 'git cl patch'
to actually apply a patch instead of performing a hard reset, if
the current branch contains local work, then rather than leaving
that work behind with a hard reset, we fall back to the old
cherry-pick behavior with a confirmation dialog and warning that
uploading will be hard.

Bug: 723787
Change-Id: I3ad164f6d3078bff00139d446bb8ce97738a1344
Reviewed-on: https://chromium-review.googlesource.com/527345
Commit-Queue: Aaron Gable <agable@chromium.org>
Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org>
9 years ago
..
gstools
subversion_config Dropping remaining scons references. 10 years ago
abandon.sh Remove SVN (and dcommit) support from git-cl 9 years ago
basic.sh Remove SVN (and dcommit) support from git-cl 9 years ago
bot_update_coverage_test.py bot_update: expose --disable-syntax-validation to recipes 9 years ago
checkout_test.py depot_tools: Replace pylint error numbers with symbolic names. 9 years ago
download_from_google_storage_unittests.py depot_tools: Replace pylint error numbers with symbolic names. 9 years ago
fix_encoding_test.py
gclient_eval_unittest.py gclient_eval: implement boolean expressions 9 years ago
gclient_scm_test.py Fix depot_tools test for git 2.11 9 years ago
gclient_smoketest.py gclient flatten: handle GN settings 9 years ago
gclient_test.py gclient: evaluate conditions for deps 9 years ago
gclient_utils_test.py depot_tools: Replace pylint error numbers with symbolic names. 9 years ago
git_cache_test.py
git_cl_creds_check_report.txt git cl creds-check: add reporting. 9 years ago
git_cl_test.py Make gerrit 'git cl patch' use hard reset by default 9 years ago
git_common_test.py Make git blame test pass independently of core.abbrev setting 9 years ago
git_dates_test.py Added git hyper-blame, a tool that skips unwanted commits in git blame. 10 years ago
git_drover_test.py git-drover: TBR appropriate reviewers 9 years ago
git_footers_test.py Reland of Relax git_footers parsing to match that of Gerrit (JGit). 9 years ago
git_hyper_blame_test.py git hyper-blame: Fixed --no-default-ignores option to not take argument. 9 years ago
git_number_test.py
git_rebase_update_test.py Add better error messages to git_reparent_branch. 10 years ago
gsutil_test.py
hooks.sh Remove SVN (and dcommit) support from git-cl 9 years ago
owners.sh Remove SVN (and dcommit) support from git-cl 9 years ago
owners_finder_test.py Only attribute comments to owners that are close to the comment 9 years ago
owners_unittest.py owners: handle CLs which only have partial OWNERS 9 years ago
patch.sh Remove SVN (and dcommit) support from git-cl 9 years ago
patch_test.py
post-land-hook-test.sh Remove SVN (and dcommit) support from git-cl 9 years ago
presubmit_unittest.py Parse Bug, R, and Tbr git-footers in PRESUBMIT 9 years ago
push-from-logs.sh Remove SVN (and dcommit) support from git-cl 9 years ago
recipes_test.py Stop running deprecated simulation_test 9 years ago
rietveld_test.py Rietveld: fix search query. 9 years ago
sample_pre_commit_hook
save-description-on-failure.sh Remove SVN (and dcommit) support from git-cl 9 years ago
scm_unittest.py Correct Git show's path format on Windows 9 years ago
submit-from-new-dir.sh Remove SVN (and dcommit) support from git-cl 9 years ago
subprocess2_test.py depot_tools: Replace pylint error numbers with symbolic names. 9 years ago
test-lib.sh Remove SVN (and dcommit) support from git-cl 9 years ago
upload-local-tracking-branch.sh Remove SVN (and dcommit) support from git-cl 9 years ago
upload-stale.sh Remove SVN (and dcommit) support from git-cl 9 years ago
upload_to_google_storage_unittests.py depot_tools: Replace pylint error numbers with symbolic names. 9 years ago
watchlists_unittest.py depot_tools: Replace pylint error numbers with symbolic names. 9 years ago