From 3b5cba4b9fc1fda3a81e07facf7f8e9cb55646f5 Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" Date: Tue, 1 Dec 2009 00:37:08 +0000 Subject: [PATCH] Update gclient sync docs to reflect reality + add an example for the most common usage. Review URL: http://codereview.chromium.org/456008 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@33390 0039d316-1c4b-4281-b951-d872f2087c98 --- gclient.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/gclient.py b/gclient.py index 9edadc2c8..cb93162a2 100755 --- a/gclient.py +++ b/gclient.py @@ -126,13 +126,12 @@ This a synonym for 'gclient %(alias)s' usage: gclient %(cmd)s [options] [--] [svn update options/args] Valid options: - --force : force update even for unchanged modules - --nohooks : don't run the hooks after the update is complete - --revision REV : update/checkout all solutions with specified revision + --force : force update even for unchanged modules + --nohooks : don't run the hooks after the update is complete --revision SOLUTION@REV : update given solution to specified revision - --deps PLATFORM(S) : sync deps for the given platform(s), or 'all' - --verbose : output additional diagnostics - --head : update to latest revision, instead of last good revision + --deps PLATFORM(S) : sync deps for the given platform(s), or 'all' + --verbose : output additional diagnostics + --head : update to latest revision, instead of last good revision Examples: gclient %(cmd)s @@ -141,6 +140,8 @@ Examples: gclient %(cmd)s --force update files from SVN according to current configuration, for all modules (useful for recovering files deleted from local copy) + gclient %(cmd)s --revision src@31000 + update src directory to r31000 """) COMMAND_USAGE_TEXT = {