diff options
Diffstat (limited to 'subcmds/sync.py')
-rw-r--r-- | subcmds/sync.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py index 849e878c..1988cc72 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
@@ -247,7 +247,7 @@ later is required to fix a server side protocol bug. | |||
247 | dest='manifest_name', | 247 | dest='manifest_name', |
248 | help='temporary manifest to use for this sync', metavar='NAME.xml') | 248 | help='temporary manifest to use for this sync', metavar='NAME.xml') |
249 | p.add_option('--no-clone-bundle', | 249 | p.add_option('--no-clone-bundle', |
250 | dest='no_clone_bundle', action='store_true', | 250 | dest='clone_bundle', default=True, action='store_false', |
251 | help='disable use of /clone.bundle on HTTP/HTTPS') | 251 | help='disable use of /clone.bundle on HTTP/HTTPS') |
252 | p.add_option('-u', '--manifest-server-username', action='store', | 252 | p.add_option('-u', '--manifest-server-username', action='store', |
253 | dest='manifest_server_username', | 253 | dest='manifest_server_username', |
@@ -259,7 +259,7 @@ later is required to fix a server side protocol bug. | |||
259 | dest='fetch_submodules', action='store_true', | 259 | dest='fetch_submodules', action='store_true', |
260 | help='fetch submodules from server') | 260 | help='fetch submodules from server') |
261 | p.add_option('--no-tags', | 261 | p.add_option('--no-tags', |
262 | dest='no_tags', action='store_true', | 262 | dest='tags', default=True, action='store_false', |
263 | help="don't fetch tags") | 263 | help="don't fetch tags") |
264 | p.add_option('--optimized-fetch', | 264 | p.add_option('--optimized-fetch', |
265 | dest='optimized_fetch', action='store_true', | 265 | dest='optimized_fetch', action='store_true', |
@@ -276,7 +276,7 @@ later is required to fix a server side protocol bug. | |||
276 | 276 | ||
277 | g = p.add_option_group('repo Version options') | 277 | g = p.add_option_group('repo Version options') |
278 | g.add_option('--no-repo-verify', | 278 | g.add_option('--no-repo-verify', |
279 | dest='no_repo_verify', action='store_true', | 279 | dest='repo_verify', default=True, action='store_false', |
280 | help='do not verify repo source code') | 280 | help='do not verify repo source code') |
281 | g.add_option('--repo-upgraded', | 281 | g.add_option('--repo-upgraded', |
282 | dest='repo_upgraded', action='store_true', | 282 | dest='repo_upgraded', action='store_true', |
@@ -338,8 +338,8 @@ later is required to fix a server side protocol bug. | |||
338 | verbose=opt.verbose, | 338 | verbose=opt.verbose, |
339 | current_branch_only=opt.current_branch_only, | 339 | current_branch_only=opt.current_branch_only, |
340 | force_sync=opt.force_sync, | 340 | force_sync=opt.force_sync, |
341 | clone_bundle=not opt.no_clone_bundle, | 341 | clone_bundle=opt.clone_bundle, |
342 | no_tags=opt.no_tags, archive=self.manifest.IsArchive, | 342 | tags=opt.tags, archive=self.manifest.IsArchive, |
343 | optimized_fetch=opt.optimized_fetch, | 343 | optimized_fetch=opt.optimized_fetch, |
344 | prune=opt.prune, | 344 | prune=opt.prune, |
345 | clone_filter=clone_filter) | 345 | clone_filter=clone_filter) |
@@ -841,7 +841,7 @@ later is required to fix a server side protocol bug. | |||
841 | start = time.time() | 841 | start = time.time() |
842 | success = mp.Sync_NetworkHalf(quiet=opt.quiet, verbose=opt.verbose, | 842 | success = mp.Sync_NetworkHalf(quiet=opt.quiet, verbose=opt.verbose, |
843 | current_branch_only=opt.current_branch_only, | 843 | current_branch_only=opt.current_branch_only, |
844 | no_tags=opt.no_tags, | 844 | tags=opt.tags, |
845 | optimized_fetch=opt.optimized_fetch, | 845 | optimized_fetch=opt.optimized_fetch, |
846 | submodules=self.manifest.HasSubmodules, | 846 | submodules=self.manifest.HasSubmodules, |
847 | clone_filter=self.manifest.CloneFilter) | 847 | clone_filter=self.manifest.CloneFilter) |
@@ -977,7 +977,7 @@ later is required to fix a server side protocol bug. | |||
977 | 977 | ||
978 | fetched = self._Fetch(to_fetch, opt, err_event) | 978 | fetched = self._Fetch(to_fetch, opt, err_event) |
979 | 979 | ||
980 | _PostRepoFetch(rp, opt.no_repo_verify) | 980 | _PostRepoFetch(rp, opt.repo_verify) |
981 | if opt.network_only: | 981 | if opt.network_only: |
982 | # bail out now; the rest touches the working tree | 982 | # bail out now; the rest touches the working tree |
983 | if err_event.isSet(): | 983 | if err_event.isSet(): |
@@ -1067,11 +1067,11 @@ def _PostRepoUpgrade(manifest, quiet=False): | |||
1067 | project.PostRepoUpgrade() | 1067 | project.PostRepoUpgrade() |
1068 | 1068 | ||
1069 | 1069 | ||
1070 | def _PostRepoFetch(rp, no_repo_verify=False, verbose=False): | 1070 | def _PostRepoFetch(rp, repo_verify=True, verbose=False): |
1071 | if rp.HasChanges: | 1071 | if rp.HasChanges: |
1072 | print('info: A new version of repo is available', file=sys.stderr) | 1072 | print('info: A new version of repo is available', file=sys.stderr) |
1073 | print(file=sys.stderr) | 1073 | print(file=sys.stderr) |
1074 | if no_repo_verify or _VerifyTag(rp): | 1074 | if not repo_verify or _VerifyTag(rp): |
1075 | syncbuf = SyncBuffer(rp.config) | 1075 | syncbuf = SyncBuffer(rp.config) |
1076 | rp.Sync_LocalHalf(syncbuf) | 1076 | rp.Sync_LocalHalf(syncbuf) |
1077 | if not syncbuf.Finish(): | 1077 | if not syncbuf.Finish(): |