• chase@chromium.org's avatar
    Avoid losing CL description during Rietveld outage. · ea452b3f
    chase@chromium.org authored
    Save the CL locally prior to attempting to submit
    to Rietveld.  The CL is saved locally with a dirty-bit
    before the upload is attempted.  If successful, the CL
    is saved locally again with a clean-bit.
    
    On loading a dirty CL for editing, we only load the
    CL description from Rietveld if the local CL is clean
    (there are no pending changes to upload).  Clean CLs
    continue to retrieve updated descriptions directly
    from Rietveld.
    
    BUG=none
    TEST=gcl change <name> saves CL description local
    prior to uploading.  gcl change <name> after a failed
    Rietveld upload uses local CL description instead of
    using the associated issue's description from Rietveld.
    Changes in this state are reset to the 'clean' state
    after the Rietveld update completes.
    Review URL: http://codereview.chromium.org/428001
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@32791 0039d316-1c4b-4281-b951-d872f2087c98
    ea452b3f
Name
Last commit
Last update
bootstrap Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
LICENSE Loading commit data...
PRESUBMIT.py Loading commit data...
README Loading commit data...
README.gclient Loading commit data...
README.git-cl Loading commit data...
README.git-cl.codereview Loading commit data...
WATCHLISTS Loading commit data...
chrome-update-create-task.bat Loading commit data...
chrome-update.bat Loading commit data...
chrome-update.py Loading commit data...
cpplint.bat Loading commit data...
cpplint.py Loading commit data...
create-chromium-git-src Loading commit data...
drover Loading commit data...
drover.bat Loading commit data...
drover.py Loading commit data...
gcl Loading commit data...
gcl.bat Loading commit data...
gcl.py Loading commit data...
gclient Loading commit data...
gclient.bat Loading commit data...
gclient.py Loading commit data...
gclient_scm.py Loading commit data...
gclient_utils.py Loading commit data...
git-cl Loading commit data...
git-cl-upload-hook Loading commit data...
git-gs Loading commit data...
git-try Loading commit data...
git_cl_hooks.py Loading commit data...
hammer Loading commit data...
hammer.bat Loading commit data...
presubmit_canned_checks.py Loading commit data...
presubmit_support.py Loading commit data...
profile.xml Loading commit data...
revert Loading commit data...
revert.bat Loading commit data...
revert.py Loading commit data...
scm.py Loading commit data...
trychange.py Loading commit data...
upload.py Loading commit data...
watchlists.py Loading commit data...