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
diff --git a/fetch.py b/fetch.py
index 6879558..aca0f88 100755
--- a/fetch.py
+++ b/fetch.py
@@ -259,8 +259,11 @@
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()