|
@@ -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]
|
|
|
|
|
|
-#### **class [Gitiles](/recipes/recipe_modules/gitiles/api.py#11)([RecipeApi][recipe_engine/wkt/RecipeApi]):**
|
|
|
+#### **class [Gitiles](/recipes/recipe_modules/gitiles/api.py#17)([RecipeApi][recipe_engine/wkt/RecipeApi]):**
|
|
|
|
|
|
Module for polling a git repository using the Gitiles web interface.
|
|
|
|
|
|
-— **def [canonicalize\_repo\_url](/recipes/recipe_modules/gitiles/api.py#216)(self, repo_url):**
|
|
|
+— **def [canonicalize\_repo\_url](/recipes/recipe_modules/gitiles/api.py#222)(self, repo_url):**
|
|
|
|
|
|
Returns a canonical form of repo_url. If not recognized, returns as is.
|
|
|
|
|
|
|
|
|
-— **def [commit\_log](/recipes/recipe_modules/gitiles/api.py#114)(self, url, commit, step_name=None, attempts=None):**
|
|
|
+— **def [commit\_log](/recipes/recipe_modules/gitiles/api.py#120)(self, url, commit, step_name=None, attempts=None):**
|
|
|
|
|
|
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.
|
|
|
* attempts (int): Number of times to try the request before failing.
|
|
|
|
|
|
-— **def [download\_archive](/recipes/recipe_modules/gitiles/api.py#156)(self, repository_url, destination, revision='refs/heads/master'):**
|
|
|
+— **def [download\_archive](/recipes/recipe_modules/gitiles/api.py#162)(self, repository_url, destination, revision='refs/heads/master'):**
|
|
|
|
|
|
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
|
|
|
'refs/heads/master'.
|
|
|
|
|
|
-— **def [download\_file](/recipes/recipe_modules/gitiles/api.py#130)(self, repository_url, file_path, branch='master', step_name=None, attempts=None, \*\*kwargs):**
|
|
|
+— **def [download\_file](/recipes/recipe_modules/gitiles/api.py#136)(self, repository_url, file_path, branch='master', step_name=None, attempts=None, \*\*kwargs):**
|
|
|
|
|
|
Downloads raw file content from a Gitiles repository.
|
|
|
|
|
@@ -637,7 +637,7 @@ Args:
|
|
|
Returns:
|
|
|
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.
|
|
|
|
|
@@ -660,17 +660,17 @@ Returns:
|
|
|
Cursor can be used for subsequent calls to log for paging. If None,
|
|
|
signals that there are no more commits to fetch.
|
|
|
|
|
|
-— **def [parse\_repo\_url](/recipes/recipe_modules/gitiles/api.py#205)(self, repo_url):**
|
|
|
+— **def [parse\_repo\_url](/recipes/recipe_modules/gitiles/api.py#211)(self, repo_url):**
|
|
|
|
|
|
Returns (host, project) pair.
|
|
|
|
|
|
Returns (None, None) if repo_url is not recognized.
|
|
|
|
|
|
-— **def [refs](/recipes/recipe_modules/gitiles/api.py#56)(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.
|
|
|
|
|
|
-— **def [unparse\_repo\_url](/recipes/recipe_modules/gitiles/api.py#212)(self, host, project):**
|
|
|
+— **def [unparse\_repo\_url](/recipes/recipe_modules/gitiles/api.py#218)(self, host, project):**
|
|
|
|
|
|
Generates a Gitiles repo URL. See also parse_repo_url.
|
|
|
### *recipe_modules* / [gsutil](/recipes/recipe_modules/gsutil)
|