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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/common/net/git_cl.py

Issue 2718503004: Remove Rietveld class and all dependencies on it. (Closed)
Patch Set: Rebased Created 3 years, 10 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 | third_party/WebKit/Tools/Scripts/webkitpy/common/net/git_cl_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Tools/Scripts/webkitpy/common/net/git_cl.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/common/net/git_cl.py b/third_party/WebKit/Tools/Scripts/webkitpy/common/net/git_cl.py
index 0dce4c6b9be6358e714c4c83ede05b5114775624..34b80cdd68a7feea11e99308ab8316b3c67ade3e 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/common/net/git_cl.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/common/net/git_cl.py
@@ -16,24 +16,16 @@ from webkitpy.common.net.buildbot import Build, filter_latest_builds
_log = logging.getLogger(__name__)
-_COMMANDS_THAT_REQUIRE_AUTH = (
- 'archive', 'comments', 'commit', 'description', 'diff', 'land', 'lint', 'owners', 'patch',
- 'presubmit', 'set-close', 'set-commit', 'status', 'try-results', 'try', 'upload',
-)
-
class GitCL(object):
- def __init__(self, host, auth_refresh_token_json=None, cwd=None):
+ def __init__(self, host, cwd=None):
self._host = host
- self._auth_refresh_token_json = auth_refresh_token_json
self._cwd = cwd
def run(self, args):
"""Runs git-cl with the given arguments and returns the output."""
command = ['git', 'cl'] + args
- if self._auth_refresh_token_json and args[0] in _COMMANDS_THAT_REQUIRE_AUTH:
- command += ['--auth-refresh-token-json', self._auth_refresh_token_json]
return self._host.executive.run_command(command, cwd=self._cwd)
def get_issue_number(self):
« no previous file with comments | « no previous file | third_party/WebKit/Tools/Scripts/webkitpy/common/net/git_cl_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698