Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: gclient_scm.py

Issue 8020004: Print debugging information when svn info didn't return the URL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gclient_scm.py
diff --git a/gclient_scm.py b/gclient_scm.py
index aba1f3e978570993431edc2aa7fce081283589f7..e2a0bdd6598a67b68c9169b7c5e68f196ccee1fd 100644
--- a/gclient_scm.py
+++ b/gclient_scm.py
@@ -779,6 +779,12 @@ class SVNWrapper(SCMWrapper):
('Can\'t update/checkout %s if an unversioned directory is present. '
'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.
dir_info = scm.SVN.CaptureStatus(os.path.join(self.checkout_path, '.'))
if any(d[0][2] == 'L' for d in dir_info):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698