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
chase@chromium.org ea452b3f54 Avoid losing CL description during Rietveld outage.
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
16 years ago
..
pymox Add pymox, fixed non-deterministic pprint.pformat output expectation. 16 years ago
README.gclient_test Pull gclient revision 72 and add the gclient unit test. 16 years ago
__init__.py Refactor the unit tests to remove a lot of duplicate code. 16 years ago
gcl_unittest.py Avoid losing CL description during Rietveld outage. 16 years ago
gclient_scm_test.py Add scm.*.GetEmail() to retrieve the user email. Use this email for try job emails. 16 years ago
gclient_test.py Reapply 32057, 32058, 32059, 32062 and fixes problems introduced by these changes. 16 years ago
gclient_utils_test.py gclient: fix bug in parsing ssh urls 16 years ago
presubmit_unittest.py Reapply 32057, 32058, 32059, 32062 and fixes problems introduced by these changes. 16 years ago
revert_unittest.py Reapply 32057, 32058, 32059, 32062 and fixes problems introduced by these changes. 16 years ago
scm_unittest.py Add scm.*.GetEmail() to retrieve the user email. Use this email for try job emails. 16 years ago
super_mox.py Reapply 32057, 32058, 32059, 32062 and fixes problems introduced by these changes. 16 years ago
trychange_unittest.py Add scm.*.GetEmail() to retrieve the user email. Use this email for try job emails. 16 years ago
watchlists_unittest.py Cleanup the unit tests by mocking more system functions. 16 years ago

README.gclient_test

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

# Copyright 2008-2009, Google Inc.

To run the gclient's unit tests, you need to checkout pymox and install it:
svn co http://pymox.googlecode.com/svn/trunk pymox
cd pymox
python setup.py install