Index: recipe_modules/bot_update/api.py |
diff --git a/recipe_modules/bot_update/api.py b/recipe_modules/bot_update/api.py |
index 2e62e6fd2481378482dbe7a8ba02d4a5d2acdead..78065b78f60dde82d8bb2023d04e54646f2713ef 100644 |
--- a/recipe_modules/bot_update/api.py |
+++ b/recipe_modules/bot_update/api.py |
@@ -53,6 +53,28 @@ class BotUpdateApi(recipe_api.RecipeApi): |
def last_returned_properties(self): |
return self._last_returned_properties |
+ # DO NOT USE. |
tandrii(chromium)
2016/08/19 14:00:04
please add bug URL.
rmistry
2016/08/19 14:36:08
Done.
|
+ # The below method will be removed after there are no more callers of |
+ # tryserver.maybe_apply_issue. |
+ def apply_gerrit_ref(gerrit_repo, gerrit_ref, root, gerrit_no_reset=False, |
+ gerrit_rebase_patch_ref=True): |
+ apply_gerrit_path = self.resource('apply_gerrit.py') |
+ kwargs.setdefault('infra_step', True) |
+ kwargs.setdefault('env', {}) |
+ kwargs['env'].setdefault('PATH', '%(PATH)s') |
+ kwargs['env']['PATH'] = self.m.path.pathsep.join([ |
+ kwargs['env']['PATH'], str(self._module.PACKAGE_REPO_ROOT)]) |
+ cmd = [ |
+ '--gerrit_repo', gerrit_repo, |
+ '--gerrit_ref', gerrit_ref, |
+ '--root', root, |
+ ] |
+ if gerrit_no_reset: |
+ cmd.append('--gerrit_no_reset') |
+ if gerrit_rebase_patch_ref: |
+ cmd.append('--gerrit_rebase_patch_ref') |
+ return self.m.python('apply_gerrit', apply_gerrit_path, cmd, **kwargs) |
+ |
def ensure_checkout(self, gclient_config=None, suffix=None, |
patch=True, update_presentation=True, |
force=False, patch_root=None, no_shallow=False, |