Commit 49fcb0cb authored by maruel@chromium.org's avatar maruel@chromium.org

Print debugging information when svn info didn't return the URL

Right now, it'd simply crash with a KeyError.

TBR=dpranke@chromium.org
BUG=
TEST=


Review URL: http://codereview.chromium.org/8020004

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@102496 0039d316-1c4b-4281-b951-d872f2087c98
parent af52a506
...@@ -779,6 +779,12 @@ class SVNWrapper(SCMWrapper): ...@@ -779,6 +779,12 @@ class SVNWrapper(SCMWrapper):
('Can\'t update/checkout %s if an unversioned directory is present. ' ('Can\'t update/checkout %s if an unversioned directory is present. '
'Delete the directory and try again.') % self.checkout_path) 'Delete the directory and try again.') % self.checkout_path)
if 'URL' not in from_info:
raise gclient_utils.Error(
('gclient is confused. Couldn\'t get the url for %s.\n'
'Try using @unmanaged.\n%s') % (
self.checkout_path, from_info))
# Look for locked directories. # Look for locked directories.
dir_info = scm.SVN.CaptureStatus(os.path.join(self.checkout_path, '.')) dir_info = scm.SVN.CaptureStatus(os.path.join(self.checkout_path, '.'))
if any(d[0][2] == 'L' for d in dir_info): if any(d[0][2] == 'L' for d in dir_info):
......
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