|
|
|
@ -516,13 +516,13 @@ DEPRECATED. Consider using gerrit.get_change_description instead.
|
|
|
|
|
— **def [upload](/recipes/recipe_modules/git_cl/api.py#47)(self, message, upload_args=None, \*\*kwargs):**
|
|
|
|
|
### *recipe_modules* / [gitiles](/recipes/recipe_modules/gitiles)
|
|
|
|
|
|
|
|
|
|
[DEPS](/recipes/recipe_modules/gitiles/__init__.py#1): [recipe\_engine/json][recipe_engine/recipe_modules/json], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/python][recipe_engine/recipe_modules/python], [recipe\_engine/raw\_io][recipe_engine/recipe_modules/raw_io], [recipe\_engine/url][recipe_engine/recipe_modules/url]
|
|
|
|
|
[DEPS](/recipes/recipe_modules/gitiles/__init__.py#5): [recipe\_engine/json][recipe_engine/recipe_modules/json], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/python][recipe_engine/recipe_modules/python], [recipe\_engine/raw\_io][recipe_engine/recipe_modules/raw_io], [recipe\_engine/step][recipe_engine/recipe_modules/step], [recipe\_engine/url][recipe_engine/recipe_modules/url]
|
|
|
|
|
|
|
|
|
|
#### **class [Gitiles](/recipes/recipe_modules/gitiles/api.py#10)([RecipeApi][recipe_engine/wkt/RecipeApi]):**
|
|
|
|
|
|
|
|
|
|
Module for polling a git repository using the Gitiles web interface.
|
|
|
|
|
|
|
|
|
|
— **def [commit\_log](/recipes/recipe_modules/gitiles/api.py#102)(self, url, commit, step_name=None, attempts=None):**
|
|
|
|
|
— **def [commit\_log](/recipes/recipe_modules/gitiles/api.py#113)(self, url, commit, step_name=None, attempts=None):**
|
|
|
|
|
|
|
|
|
|
Returns: (dict) the Gitiles commit log structure for a given commit.
|
|
|
|
|
|
|
|
|
@ -532,7 +532,23 @@ Args:
|
|
|
|
|
step_name (str): If not None, override the step name.
|
|
|
|
|
attempts (int): Number of times to try the request before failing.
|
|
|
|
|
|
|
|
|
|
— **def [download\_file](/recipes/recipe_modules/gitiles/api.py#118)(self, repository_url, file_path, branch='master', step_name=None, attempts=None, \*\*kwargs):**
|
|
|
|
|
— **def [download\_archive](/recipes/recipe_modules/gitiles/api.py#155)(self, repository_url, destination, revision='refs/heads/master'):**
|
|
|
|
|
|
|
|
|
|
Downloads an archive of the repo and extracts it to `destination`.
|
|
|
|
|
|
|
|
|
|
If the gitiles server attempts to provide a tarball with paths which escape
|
|
|
|
|
`destination`, this function will extract all valid files and then
|
|
|
|
|
raise StepFailure with an attribute `StepFailure.gitiles_skipped_files`
|
|
|
|
|
containing the names of the files that were skipped.
|
|
|
|
|
|
|
|
|
|
Args:
|
|
|
|
|
repository_url (str): Full URL to the repository
|
|
|
|
|
destination (Path): Local path to extract the archive to. Must not exist
|
|
|
|
|
prior to this call.
|
|
|
|
|
revision (str): The ref or revision in the repo to download. Defaults to
|
|
|
|
|
'refs/heads/master'.
|
|
|
|
|
|
|
|
|
|
— **def [download\_file](/recipes/recipe_modules/gitiles/api.py#129)(self, repository_url, file_path, branch='master', step_name=None, attempts=None, \*\*kwargs):**
|
|
|
|
|
|
|
|
|
|
Downloads raw file content from a Gitiles repository.
|
|
|
|
|
|
|
|
|
@ -546,7 +562,7 @@ Args:
|
|
|
|
|
Returns:
|
|
|
|
|
Raw file content.
|
|
|
|
|
|
|
|
|
|
— **def [log](/recipes/recipe_modules/gitiles/api.py#56)(self, url, ref, limit=0, cursor=None, step_name=None, attempts=None, \*\*kwargs):**
|
|
|
|
|
— **def [log](/recipes/recipe_modules/gitiles/api.py#67)(self, url, ref, limit=0, cursor=None, step_name=None, attempts=None, \*\*kwargs):**
|
|
|
|
|
|
|
|
|
|
Returns the most recent commits under the given ref with properties.
|
|
|
|
|
|
|
|
|
@ -569,7 +585,7 @@ Returns:
|
|
|
|
|
Cursor can be used for subsequent calls to log for paging. If None,
|
|
|
|
|
signals that there are no more commits to fetch.
|
|
|
|
|
|
|
|
|
|
— **def [refs](/recipes/recipe_modules/gitiles/api.py#44)(self, url, step_name='refs', attempts=None):**
|
|
|
|
|
— **def [refs](/recipes/recipe_modules/gitiles/api.py#55)(self, url, step_name='refs', attempts=None):**
|
|
|
|
|
|
|
|
|
|
Returns a list of refs in the remote repository.
|
|
|
|
|
### *recipe_modules* / [gsutil](/recipes/recipe_modules/gsutil)
|
|
|
|
@ -778,9 +794,9 @@ like checkout or compile), and some of these tests have failed.
|
|
|
|
|
— **def [RunSteps](/recipes/recipe_modules/git_cl/examples/full.py#17)(api):**
|
|
|
|
|
### *recipes* / [gitiles:examples/full](/recipes/recipe_modules/gitiles/examples/full.py)
|
|
|
|
|
|
|
|
|
|
[DEPS](/recipes/recipe_modules/gitiles/examples/full.py#5): [gitiles](#recipe_modules-gitiles), [recipe\_engine/json][recipe_engine/recipe_modules/json], [recipe\_engine/properties][recipe_engine/recipe_modules/properties]
|
|
|
|
|
[DEPS](/recipes/recipe_modules/gitiles/examples/full.py#5): [gitiles](#recipe_modules-gitiles), [recipe\_engine/json][recipe_engine/recipe_modules/json], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/step][recipe_engine/recipe_modules/step]
|
|
|
|
|
|
|
|
|
|
— **def [RunSteps](/recipes/recipe_modules/gitiles/examples/full.py#12)(api):**
|
|
|
|
|
— **def [RunSteps](/recipes/recipe_modules/gitiles/examples/full.py#14)(api):**
|
|
|
|
|
### *recipes* / [gsutil:examples/full](/recipes/recipe_modules/gsutil/examples/full.py)
|
|
|
|
|
|
|
|
|
|
[DEPS](/recipes/recipe_modules/gsutil/examples/full.py#5): [gsutil](#recipe_modules-gsutil), [recipe\_engine/path][recipe_engine/recipe_modules/path]
|
|
|
|
|