@ -588,16 +588,16 @@ DEPRECATED. Consider using gerrit.get_change_description instead.
[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]
[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#1 1 )([RecipeApi][recipe_engine/wkt/RecipeApi]):**
#### **class [Gitiles ](/recipes/recipe_modules/gitiles/api.py#1 7 )([RecipeApi][recipe_engine/wkt/RecipeApi]):**
Module for polling a git repository using the Gitiles web interface.
Module for polling a git repository using the Gitiles web interface.
— **def [canonicalize\_repo\_url ](/recipes/recipe_modules/gitiles/api.py#2 16 )(self, repo_url):**
— **def [canonicalize\_repo\_url ](/recipes/recipe_modules/gitiles/api.py#2 22 )(self, repo_url):**
Returns a canonical form of repo_url. If not recognized, returns as is.
Returns a canonical form of repo_url. If not recognized, returns as is.
— **def [commit\_log ](/recipes/recipe_modules/gitiles/api.py#1 14 )(self, url, commit, step_name=None, attempts=None):**
— **def [commit\_log ](/recipes/recipe_modules/gitiles/api.py#1 20 )(self, url, commit, step_name=None, attempts=None):**
Returns: (dict) the Gitiles commit log structure for a given commit.
Returns: (dict) the Gitiles commit log structure for a given commit.
@ -607,7 +607,7 @@ Args:
* step_name (str): If not None, override the step name.
* step_name (str): If not None, override the step name.
* attempts (int): Number of times to try the request before failing.
* attempts (int): Number of times to try the request before failing.
— **def [download\_archive ](/recipes/recipe_modules/gitiles/api.py#1 5 6)(self, repository_url, destination, revision='refs/heads/master'):**
— **def [download\_archive ](/recipes/recipe_modules/gitiles/api.py#1 62 )(self, repository_url, destination, revision='refs/heads/master'):**
Downloads an archive of the repo and extracts it to `destination` .
Downloads an archive of the repo and extracts it to `destination` .
@ -623,7 +623,7 @@ Args:
* revision (str): The ref or revision in the repo to download. Defaults to
* revision (str): The ref or revision in the repo to download. Defaults to
'refs/heads/master'.
'refs/heads/master'.
— **def [download\_file ](/recipes/recipe_modules/gitiles/api.py#13 0 )(self, repository_url, file_path, branch='master', step_name=None, attempts=None, \*\*kwargs):**
— **def [download\_file ](/recipes/recipe_modules/gitiles/api.py#13 6 )(self, repository_url, file_path, branch='master', step_name=None, attempts=None, \*\*kwargs):**
Downloads raw file content from a Gitiles repository.
Downloads raw file content from a Gitiles repository.
@ -637,7 +637,7 @@ Args:
Returns:
Returns:
Raw file content.
Raw file content.
— **def [log ](/recipes/recipe_modules/gitiles/api.py# 68 )(self, url, ref, limit=0, cursor=None, step_name=None, attempts=None, \*\*kwargs):**
— **def [log ](/recipes/recipe_modules/gitiles/api.py# 74 )(self, url, ref, limit=0, cursor=None, step_name=None, attempts=None, \*\*kwargs):**
Returns the most recent commits under the given ref with properties.
Returns the most recent commits under the given ref with properties.
@ -660,17 +660,17 @@ Returns:
Cursor can be used for subsequent calls to log for paging. If None,
Cursor can be used for subsequent calls to log for paging. If None,
signals that there are no more commits to fetch.
signals that there are no more commits to fetch.
— **def [parse\_repo\_url ](/recipes/recipe_modules/gitiles/api.py#2 05 )(self, repo_url):**
— **def [parse\_repo\_url ](/recipes/recipe_modules/gitiles/api.py#2 11 )(self, repo_url):**
Returns (host, project) pair.
Returns (host, project) pair.
Returns (None, None) if repo_url is not recognized.
Returns (None, None) if repo_url is not recognized.
— **def [refs ](/recipes/recipe_modules/gitiles/api.py# 5 6)(self, url, step_name='refs', attempts=None):**
— **def [refs ](/recipes/recipe_modules/gitiles/api.py# 62 )(self, url, step_name='refs', attempts=None):**
Returns a list of refs in the remote repository.
Returns a list of refs in the remote repository.
— **def [unparse\_repo\_url ](/recipes/recipe_modules/gitiles/api.py#21 2 )(self, host, project):**
— **def [unparse\_repo\_url ](/recipes/recipe_modules/gitiles/api.py#21 8 )(self, host, project):**
Generates a Gitiles repo URL. See also parse_repo_url.
Generates a Gitiles repo URL. See also parse_repo_url.
### *recipe_modules* / [gsutil ](/recipes/recipe_modules/gsutil )
### *recipe_modules* / [gsutil ](/recipes/recipe_modules/gsutil )