Commit fd79e0d2 authored by dpranke@chromium.org's avatar dpranke@chromium.org

improve the error message fetch returns if a checkout exists

to tell the user how to recover from partial checkouts and
what to do with an existing checkout.

R=iannucci@chromium.org
BUG=230691

Review URL: https://chromiumcodereview.appspot.com/13945020

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@194019 0039d316-1c4b-4281-b951-d872f2087c98
parent 3cdcf56c
......@@ -259,8 +259,11 @@ def run(dryrun, spec, root):
except KeyError:
return 1
if checkout.exists():
print 'You appear to already have this checkout.'
print 'Aborting to avoid clobbering your work.'
print 'You appear to already have a checkout. "fetch" is used only'
print 'to get new checkouts. Use "gclient sync" to update the checkout.'
print
print 'Fetch also does not yet deal with partial checkouts, so if fetch'
print 'failed, delete the checkout and start over (crbug.com/230691).'
return 1
return checkout.init()
......
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