• tandrii@chromium.org's avatar
    git cl: Rework Changelist class for Rietveld/Gerrit use. · e044c817
    tandrii@chromium.org authored
    This adds pluggable codereview-specific implementations into
    Changelist class. The specific implementation is chosen at
    Changelist automatically, with Rietveld being default for
    backwards compatibility.
    
    Gerrit implementation for Gerrit is incomplete, and will be
    added in later CLs. However, it is sufficient to ensure
    current functionality of this tool is not diminished.
    
    Sadly, the base class isn't completely free from Rietveld
    assumptions because of presubmit_support. Apparently, PRESUBMIT 
    scripts can make use of Rietveld instance for RPCs directly.
    This use doesn't make sense for Gerrit, which substitutes
    rietveld instance with a dummy object, which raises exception
    on any attribute access with a diagnostic message.
    
    This also includes refactoring of some related code which
    (ab)used ChangeList. Overall, this CL adds a few extra call to
    git config in order to determine which codereview to use, but
    but it shouldn't have any performance impact.
    
    
    BUG=579160
    
    Review URL: https://codereview.chromium.org/1805193002
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299462 0039d316-1c4b-4281-b951-d872f2087c98
    e044c817
Name
Last commit
Last update
..
gstools Loading commit data...
subversion_config Loading commit data...
abandon.sh Loading commit data...
basic.sh Loading commit data...
checkout_test.py Loading commit data...
download_from_google_storage_unittests.py Loading commit data...
fix_encoding_test.py Loading commit data...
gclient_scm_test.py Loading commit data...
gclient_smoketest.py Loading commit data...
gclient_test.py Loading commit data...
gclient_utils_test.py Loading commit data...
git_cache_test.py Loading commit data...
git_cl_test.py Loading commit data...
git_common_test.py Loading commit data...
git_dates_test.py Loading commit data...
git_drover_test.py Loading commit data...
git_footers_test.py Loading commit data...
git_hyper_blame_test.py Loading commit data...
git_number_test.py Loading commit data...
git_rebase_update_test.py Loading commit data...
gsutil_test.py Loading commit data...
hooks.sh Loading commit data...
owners.sh Loading commit data...
owners_finder_test.py Loading commit data...
owners_unittest.py Loading commit data...
patch.sh Loading commit data...
patch_test.py Loading commit data...
post-dcommit-hook-test.sh Loading commit data...
presubmit_unittest.py Loading commit data...
push-basic.sh Loading commit data...
push-from-logs.sh Loading commit data...
recipes_test.py Loading commit data...
rename.sh Loading commit data...
rietveld_test.py Loading commit data...
sample_pre_commit_hook Loading commit data...
save-description-on-failure.sh Loading commit data...
scm_unittest.py Loading commit data...
submit-from-new-dir.sh Loading commit data...
submodule-merge-test.sh Loading commit data...
subprocess2_test.py Loading commit data...
test-lib.sh Loading commit data...
trychange_unittest.py Loading commit data...
upload-local-tracking-branch.sh Loading commit data...
upload-stale.sh Loading commit data...
upload_to_google_storage_unittests.py Loading commit data...
upstream.sh Loading commit data...
watchlists_unittest.py Loading commit data...