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
dpranke@chromium.org f6ddfa4ba0 Use author as determined from scm if we can not get it from rietveld
Until an issue is uploaded to Rietveld, we don't know the official
email address to use for an owners check. There are three ways to fix
this: we could attempt to log in to rietveld prior to doing the check
and extract the address to use, or we could use ~/.last_codereview_email_address,
or we can use the email address we can determine from the checkout.

All three options have flaws; the first is particularly awkward since there
doesn't seem to be a good way to fetch the email without posting an issue.
The second is flawed if we use different addresses for different repos,
and the third is flawed if the checkout's email address is different from
the rietveld address, or if it is anonymous.

However, since this is only being used for owners checks (in this case),
anonymous checkouts probably don't matter, and hopefully the cases where
the email addresses differ are rare.

R=maruel@chromium.org
BUG=118388, 150049


Review URL: https://chromiumcodereview.appspot.com/12377023

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@186259 0039d316-1c4b-4281-b951-d872f2087c98
12 years ago
..
subversion_config
abandon.sh
basic.sh
breakpad_unittest.py
checkout_test.py
fix_encoding_test.py
gcl_unittest.py Fix parameters for git_cl and gcl. 12 years ago
gclient_scm_test.py Make safesync w/ git hash work when lkgr is ahead of clone. 12 years ago
gclient_smoketest.py Remove more unversioned directories. 12 years ago
gclient_test.py Add gclient grep for git repos 12 years ago
gclient_utils_test.py
git_cl_test.py git cl upload now diffs HEAD rather than working tree 12 years ago
hooks.sh
owners.sh
owners_unittest.py Add a way to require approval from owners other than the author. 12 years ago
patch.sh
patch_test.py
post-dcommit-hook-test.sh
presubmit_unittest.py Use author as determined from scm if we can not get it from rietveld 12 years ago
push-basic.sh
push-from-logs.sh
rename.sh
rietveld_test.py Create CachingRietveld to automatically cache results for presubmit checks. 12 years ago
sample_pre_commit_hook
save-description-on-failure.sh
scm_unittest.py
submit-from-new-dir.sh
submodule-merge-test.sh
subprocess2_test.py
test-lib.sh
trychange_unittest.py
upload-local-tracking-branch.sh
upload-stale.sh
upstream.sh
watchlists_unittest.py