From fd79e0d2483655befd21786b389cae56fa0f2b99 Mon Sep 17 00:00:00 2001 From: "dpranke@chromium.org" Date: Fri, 12 Apr 2013 21:34:32 +0000 Subject: [PATCH] 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 --- fetch.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fetch.py b/fetch.py index 687955874..aca0f88d6 100755 --- a/fetch.py +++ b/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()