Home
last modified time | relevance | path

Searched refs:proj_path (Results 1 – 7 of 7) sorted by relevance

/tools/external_updater/
Dgit_utils.py30 def fetch(proj_path: Path, remote_names: List[str]) -> None:
37 _run(['git', 'fetch', '--tags', '--multiple'] + remote_names, cwd=proj_path)
40 def add_remote(proj_path: Path, name: str, url: str) -> None:
48 _run(['git', 'remote', 'add', name, url], cwd=proj_path)
51 def remove_remote(proj_path: Path, name: str) -> None:
53 _run(['git', 'remote', 'remove', name], cwd=proj_path)
56 def list_remotes(proj_path: Path) -> Dict[str, str]:
69 out = _run(['git', 'remote', '-v'], proj_path)
74 def get_sha_for_branch(proj_path: Path, branch: str):
76 return _run(['git', 'rev-parse', branch], proj_path).strip()
[all …]
Dfileutils.py33 def get_absolute_project_path(proj_path: Path) -> Path:
38 return EXTERNAL_PATH / proj_path
41 def get_metadata_path(proj_path: Path) -> Path:
43 return get_absolute_project_path(proj_path) / METADATA_FILENAME
46 def get_relative_project_path(proj_path: Path) -> Path:
48 return get_absolute_project_path(proj_path).relative_to(EXTERNAL_PATH)
51 def read_metadata(proj_path: Path) -> metadata_pb2.MetaData:
65 with get_metadata_path(proj_path).open('r') as metadata_file:
70 def write_metadata(proj_path: Path, metadata: metadata_pb2.MetaData, keep_date: bool) -> None:
89 with get_metadata_path(proj_path).open('w') as metadata_file:
Dexternal_updater.py71 def build_updater(proj_path: Path) -> Tuple[Updater, metadata_pb2.MetaData]:
83 proj_path = fileutils.get_absolute_project_path(proj_path)
84 metadata = fileutils.read_metadata(proj_path)
85 updater = updater_utils.create_updater(metadata, proj_path, UPDATERS)
125 proj_path: Path,
136 rel_proj_path = fileutils.get_relative_project_path(proj_path)
138 updater, metadata = build_updater(proj_path)
Dhashtags.py18 def find_hashtag(proj_path: Path) -> str:
20 if str(proj_path).find('/external/rust/') != -1:
Dbase_updater.py25 def __init__(self, proj_path: Path, old_url: metadata_pb2.URL,
27 self._proj_path = fileutils.get_absolute_project_path(proj_path)
Dexternal_updater_reviewers_test.py44 def _collect_reviewers(self, num_runs, proj_path): argument
47 name = reviewers.find_reviewers(proj_path)
/tools/asuite/aidegen/project/
Dproject_splitter.py190 proj_path = project.project_relative_path
192 if self._framework_exist and proj_path != constant.FRAMEWORK_PATH:
194 if self._full_repo and proj_path:
204 proj_path)