mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
Add --depth option to repo.
See related repo change: https://review.source.android.com/#change,22722 Review URL: http://codereview.chromium.org/7111045 Patch from Doug Anderson <dianders@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@89361 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
14
repo
14
repo
@@ -28,7 +28,7 @@ if __name__ == '__main__':
|
|||||||
del magic
|
del magic
|
||||||
|
|
||||||
# increment this whenever we make important changes to this script
|
# increment this whenever we make important changes to this script
|
||||||
VERSION = (1, 10)
|
VERSION = (1, 11)
|
||||||
|
|
||||||
# increment this if the MAINTAINER_KEYS block is modified
|
# increment this if the MAINTAINER_KEYS block is modified
|
||||||
KEYRING_VERSION = (1,0)
|
KEYRING_VERSION = (1,0)
|
||||||
@@ -109,23 +109,22 @@ group = init_optparse.add_option_group('Manifest options')
|
|||||||
group.add_option('-u', '--manifest-url',
|
group.add_option('-u', '--manifest-url',
|
||||||
dest='manifest_url',
|
dest='manifest_url',
|
||||||
help='manifest repository location', metavar='URL')
|
help='manifest repository location', metavar='URL')
|
||||||
group.add_option('-o', '--origin',
|
|
||||||
dest='manifest_origin',
|
|
||||||
help="use REMOTE instead of 'origin' to track upstream",
|
|
||||||
metavar='REMOTE')
|
|
||||||
group.add_option('-b', '--manifest-branch',
|
group.add_option('-b', '--manifest-branch',
|
||||||
dest='manifest_branch',
|
dest='manifest_branch',
|
||||||
help='manifest branch or revision', metavar='REVISION')
|
help='manifest branch or revision', metavar='REVISION')
|
||||||
group.add_option('-m', '--manifest-name',
|
group.add_option('-m', '--manifest-name',
|
||||||
dest='manifest_name',
|
dest='manifest_name',
|
||||||
help='initial manifest file (deprecated)',
|
help='initial manifest file', metavar='NAME.xml')
|
||||||
metavar='NAME.xml')
|
|
||||||
group.add_option('--mirror',
|
group.add_option('--mirror',
|
||||||
dest='mirror', action='store_true',
|
dest='mirror', action='store_true',
|
||||||
help='mirror the forrest')
|
help='mirror the forrest')
|
||||||
group.add_option('--reference',
|
group.add_option('--reference',
|
||||||
dest='reference',
|
dest='reference',
|
||||||
help='location of mirror directory', metavar='DIR')
|
help='location of mirror directory', metavar='DIR')
|
||||||
|
group.add_option('--depth', type='int', default=None,
|
||||||
|
dest='depth',
|
||||||
|
help='create a shallow clone with given depth; see git clone')
|
||||||
|
|
||||||
|
|
||||||
# Tool
|
# Tool
|
||||||
group = init_optparse.add_option_group('repo Version options')
|
group = init_optparse.add_option_group('repo Version options')
|
||||||
@@ -601,4 +600,3 @@ def main(orig_args):
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main(sys.argv[1:])
|
main(sys.argv[1:])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user