Commit 3ffca4be authored by Edward Lesmes's avatar Edward Lesmes Committed by LUCI CQ

gclient: Update docs to make clear revision numbers are not supported.

Bug: 861786
Change-Id: I378ff8f5871e61cce77d4888432462a33a974ee6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2906495
Commit-Queue: Gavin Mak <gavinmak@google.com>
Auto-Submit: Edward Lesmes <ehmaldonado@chromium.org>
Reviewed-by: 's avatarGavin Mak <gavinmak@google.com>
parent af121aee
......@@ -2605,8 +2605,8 @@ def CMDstatus(parser, args):
gclient sync --force
update files from SCM according to current configuration, for
all modules (useful for recovering files deleted from local copy)
gclient sync --revision src@31000
update src directory to r31000
gclient sync --revision src@GIT_COMMIT_OR_REF
update src directory to GIT_COMMIT_OR_REF
JSON output format:
If the --output-json option is specified, the following document structure will
......@@ -2634,14 +2634,15 @@ def CMDsync(parser, args):
help='don\'t run pre-DEPS hooks', default=False)
parser.add_option('-r', '--revision', action='append',
dest='revisions', metavar='REV', default=[],
help='Enforces revision/hash for the solutions with the '
help='Enforces git ref/hash for the solutions with the '
'format src@rev. The src@ part is optional and can be '
'skipped. You can also specify URLs instead of paths '
'and gclient will find the solution corresponding to '
'the given URL. If a path is also specified, the URL '
'takes precedence. -r can be used multiple times when '
'.gclient has multiple solutions configured, and will '
'work even if the src@ part is skipped.')
'work even if the src@ part is skipped. Revision '
'numbers (e.g. 31000 or r31000) are not supported.')
parser.add_option('--patch-ref', action='append',
dest='patch_refs', metavar='GERRIT_REF', default=[],
help='Patches the given reference with the format '
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment