Index: repo |
=================================================================== |
--- repo (revision 89265) |
+++ repo (working copy) |
@@ -28,7 +28,7 @@ |
del magic |
# 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 |
KEYRING_VERSION = (1,0) |
@@ -109,24 +109,23 @@ |
group.add_option('-u', '--manifest-url', |
dest='manifest_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', |
dest='manifest_branch', |
help='manifest branch or revision', metavar='REVISION') |
group.add_option('-m', '--manifest-name', |
dest='manifest_name', |
- help='initial manifest file (deprecated)', |
- metavar='NAME.xml') |
+ help='initial manifest file', metavar='NAME.xml') |
group.add_option('--mirror', |
dest='mirror', action='store_true', |
help='mirror the forrest') |
group.add_option('--reference', |
dest='reference', |
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 |
group = init_optparse.add_option_group('repo Version options') |
group.add_option('--repo-url', |
@@ -601,4 +600,3 @@ |
if __name__ == '__main__': |
main(sys.argv[1:]) |
- |