From 1998c6d137ad11953b8e7bf7dc330472d4dcc6f1 Mon Sep 17 00:00:00 2001 From: "maruel@chromium.org" Date: Fri, 15 May 2009 12:38:12 +0000 Subject: [PATCH] Raise an human readable exception if an unversioned directory exists. Review URL: http://codereview.chromium.org/115354 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@16156 0039d316-1c4b-4281-b951-d872f2087c98 --- gclient.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gclient.py b/gclient.py index 8ef39e45e6..8eeee6efd2 100755 --- a/gclient.py +++ b/gclient.py @@ -788,6 +788,10 @@ class SCMWrapper(object): # Get the existing scm url and the revision number of the current checkout. from_info = CaptureSVNInfo(os.path.join(checkout_path, '.'), '.') + if not from_info: + raise Error("Can't update/checkout %r if an unversioned directory is " + "present. Delete the directory and try again." % + checkout_path) if options.manually_grab_svn_rev: # Retrieve the current HEAD version because svn is slow at null updates.