Log gclient revert exceptions

BUG=336460

Review URL: https://codereview.chromium.org/150003010

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@250904 0039d316-1c4b-4281-b951-d872f2087c98
experimental/szager/collated-output
zty@chromium.org 12 years ago
parent 50fd47f55f
commit 6279e8a389

@ -13,6 +13,7 @@ import sys
import tempfile import tempfile
import threading import threading
import time import time
import traceback
import urlparse import urlparse
import download_from_google_storage import download_from_google_storage
@ -862,6 +863,9 @@ class GitWrapper(SCMWrapper):
gclient_utils.safe_makedirs(self.checkout_path) gclient_utils.safe_makedirs(self.checkout_path)
gclient_utils.safe_rename(os.path.join(tmp_dir, '.git'), gclient_utils.safe_rename(os.path.join(tmp_dir, '.git'),
os.path.join(self.checkout_path, '.git')) os.path.join(self.checkout_path, '.git'))
except:
traceback.print_exc(file=sys.stderr)
raise
finally: finally:
if os.listdir(tmp_dir): if os.listdir(tmp_dir):
print('\n_____ removing non-empty tmp dir %s' % tmp_dir) print('\n_____ removing non-empty tmp dir %s' % tmp_dir)

Loading…
Cancel
Save