Home | History | Annotate | Download | only in repo_diff

Lines Matching refs:workspace

62 def repo_init(url, rev, workspace):
68 workspace: the folder to init and sync code
71 print("repo init:\n url: %s\n rev: %s\n workspace: %s" %
72 (url, rev, workspace))
75 (url, rev), cwd=workspace, shell=True)
78 def repo_sync(workspace, ignore_error, retry=5):
84 print("repo sync (retry=%d/%d):\n workspace: %s" %
85 (count, retry, workspace))
92 subprocess.check_output(command, cwd=workspace, shell=True)
111 def get_build_id(workspace):
112 """Get BUILD_ID defined in $workspace/build/core/build_id.mk."""
114 path = os.path.join(workspace, "build", "core", "build_id.mk")
119 def repo_sync_specific_release(url, branch, tag, workspace, ignore_error):
122 if not os.path.exists(workspace):
123 os.makedirs(workspace)
125 manifest_path = os.path.join(workspace, ".repo", "manifests")
127 repo_init(url, branch, workspace)
133 repo_init(url, rev, workspace)
135 repo_sync(workspace, ignore_error)
141 """Syncs and diffs an Android workspace against an upstream workspace."""
143 workspace = os.path.abspath(DOWNSTREAM_WORKSPACE)
150 workspace,
157 build_id = get_build_id(workspace)
159 raise(ValueError("Error: could not find the Build ID of " + workspace))
183 workspace,