mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
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
This commit is contained in:
7
fetch.py
7
fetch.py
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user