Commit e91b61cd authored by Mark Janes's avatar Mark Janes

fetch: re-use RepoSet object to avoid delays

Every instantiation has to ping the master to see if it is in the
build lab, which takes ~5s.
parent c95bec38
......@@ -72,7 +72,7 @@ def main():
repos = bs.RepoSet()
spec = bs.BuildSpecification()
spec = bs.BuildSpecification(repo_set=repos)
limit_to_repos = {}
for c in args.commits:
......@@ -89,7 +89,9 @@ def main():
if project:
# only fetch sources that are required for the project
deps = bs.DependencyGraph(project, bs.Options(args = [sys.argv[0]]))
deps = bs.DependencyGraph(project,
bs.Options(args = [sys.argv[0]]),
for repo in deps.all_sources():
if repo not in limit_to_repos:
limit_to_repos[repo] = None
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