Commit 1998c6d1 authored by maruel@chromium.org's avatar maruel@chromium.org

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
parent 2806acc5
......@@ -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.
......
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