Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(610)

Unified Diff: recipe_modules/gclient/api.py

Issue 2117063002: remove blink_or_chromium gclient config (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | recipe_modules/gclient/config.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_modules/gclient/api.py
diff --git a/recipe_modules/gclient/api.py b/recipe_modules/gclient/api.py
index fe11fd0577ecf7f3c21bedc747bc46758392fdee..64233fca439c258168d0d1dafdea37c0bb22cf23 100644
--- a/recipe_modules/gclient/api.py
+++ b/recipe_modules/gclient/api.py
@@ -32,23 +32,6 @@ class RevisionFallbackChain(RevisionResolver):
self._default)
-class ProjectRevisionResolver(RevisionResolver):
- """Revision resolver that takes into account the project."""
- def __init__(self, project, parent_got_revision=None):
- self.project = project
- self.parent_got_revision = parent_got_revision or 'parent_got_revision'
-
- # TODO(phajdan.jr): Move to proper repo and add coverage.
- def resolve(self, properties): # pragma: no cover
- """Resolve the revision if project matches, otherwise default to HEAD."""
- if properties.get('project') == self.project:
- return (properties.get(self.parent_got_revision) or
- properties.get('revision') or
- 'HEAD')
- return (properties.get(self.parent_got_revision) or
- 'HEAD')
-
-
def jsonish_to_python(spec, is_top=False):
"""Turn a json spec into a python parsable object.
« no previous file with comments | « no previous file | recipe_modules/gclient/config.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698