Commit 6279e8a3 authored by zty@chromium.org's avatar zty@chromium.org

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
parent 50fd47f5
...@@ -13,6 +13,7 @@ import sys ...@@ -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): ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment