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
experimental/szager/collated-output
dpranke@chromium.org 12 years ago
parent 3cdcf56c58
commit fd79e0d248

@ -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()

Loading…
Cancel
Save