mirror of
https://gerrit.googlesource.com/git-repo
synced 2025-07-02 20:17:19 +00:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
0ae9503a86 | |||
cd89ec147a | |||
d41eed0b36 | |||
d2b086bea9 |
@ -1051,7 +1051,7 @@ class Project(object):
|
|||||||
prune=False,
|
prune=False,
|
||||||
submodules=False,
|
submodules=False,
|
||||||
clone_filter=None,
|
clone_filter=None,
|
||||||
partial_clone_exclude=None):
|
partial_clone_exclude=set()):
|
||||||
"""Perform only the network IO portion of the sync process.
|
"""Perform only the network IO portion of the sync process.
|
||||||
Local working directory/branch state is not affected.
|
Local working directory/branch state is not affected.
|
||||||
"""
|
"""
|
||||||
@ -2205,7 +2205,7 @@ class Project(object):
|
|||||||
|
|
||||||
# Figure out how long to sleep before the next attempt, if there is one.
|
# Figure out how long to sleep before the next attempt, if there is one.
|
||||||
if not verbose:
|
if not verbose:
|
||||||
output_redir.write('\n%s:\n%s' % (self.name, gitcmd.stdout), file=sys.stderr)
|
output_redir.write('\n%s:\n%s' % (self.name, gitcmd.stdout))
|
||||||
if try_n < retry_fetches - 1:
|
if try_n < retry_fetches - 1:
|
||||||
output_redir.write('sleeping %s seconds before retrying' % retry_cur_sleep)
|
output_redir.write('sleeping %s seconds before retrying' % retry_cur_sleep)
|
||||||
time.sleep(retry_cur_sleep)
|
time.sleep(retry_cur_sleep)
|
||||||
|
2
repo
2
repo
@ -298,7 +298,7 @@ def InitParser(parser, gitc_init=False):
|
|||||||
help='manifest repository location', metavar='URL')
|
help='manifest repository location', metavar='URL')
|
||||||
group.add_option('-b', '--manifest-branch', metavar='REVISION',
|
group.add_option('-b', '--manifest-branch', metavar='REVISION',
|
||||||
help='manifest branch or revision (use HEAD for default)')
|
help='manifest branch or revision (use HEAD for default)')
|
||||||
group.add_option('-m', '--manifest-name',
|
group.add_option('-m', '--manifest-name', default='default.xml',
|
||||||
help='initial manifest file', metavar='NAME.xml')
|
help='initial manifest file', metavar='NAME.xml')
|
||||||
group.add_option('-g', '--groups', default='default',
|
group.add_option('-g', '--groups', default='default',
|
||||||
help='restrict manifest projects to ones with specified '
|
help='restrict manifest projects to ones with specified '
|
||||||
|
@ -51,7 +51,7 @@ import git_superproject
|
|||||||
import gitc_utils
|
import gitc_utils
|
||||||
from project import Project
|
from project import Project
|
||||||
from project import RemoteSpec
|
from project import RemoteSpec
|
||||||
from command import Command, MirrorSafeCommand
|
from command import Command, MirrorSafeCommand, WORKER_BATCH_SIZE
|
||||||
from error import RepoChangedException, GitError, ManifestParseError
|
from error import RepoChangedException, GitError, ManifestParseError
|
||||||
import platform_utils
|
import platform_utils
|
||||||
from project import SyncBuffer
|
from project import SyncBuffer
|
||||||
|
Reference in New Issue
Block a user