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

Unified Diff: gcl.py

Issue 3117039: Refactor SubprocessCallAndFilter() to remove positional arguments. (Closed)
Patch Set: Created 10 years, 4 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 | gclient.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcl.py
diff --git a/gcl.py b/gcl.py
index dfe02096d4e5d26766ed019d85ce05923b0a3023..efe72f833c6b7e457d3b54db40d02207a45e2ce0 100755
--- a/gcl.py
+++ b/gcl.py
@@ -143,12 +143,12 @@ def GetCachedFile(filename, max_age=60*60*24*3, use_root=False):
# stderr into content_array.
content_array = []
svn_path = url_path + "/" + filename
- SVN.RunAndFilterOutput(['cat', svn_path, '--non-interactive'], '.',
- False, False, content_array.append)
+ SVN.RunAndFilterOutput(['cat', svn_path, '--non-interactive'],
+ cwd='.', filter_fn=content_array.append)
# Exit the loop if the file was found. Override content.
content = '\n'.join(content_array)
break
- except gclient_utils.Error, e:
+ except gclient_utils.Error:
if content_array[0].startswith(
'svn: Can\'t get username or password'):
ErrorExit('Your svn credentials expired. Please run svn update '
@@ -716,7 +716,7 @@ def CMDstatus():
@need_change_and_args
-@attrs(usage='[--no_presubmit] [--clobber] [--no_watchlists]')
+@attrs(usage='[--no_presubmit] [--no_watchlists]')
def CMDupload(change_info, args):
"""Uploads the changelist to the server for review.
@@ -736,9 +736,6 @@ def CMDupload(change_info, args):
if FilterFlag(args, "--send-mail"):
args.append("--send_mail")
- # Supports --clobber for the try server.
- clobber = FilterFlag(args, "--clobber")
-
upload_arg = ["upload.py", "-y"]
server = GetCodeReviewSetting("CODE_REVIEW_SERVER")
if not server:
« no previous file with comments | « no previous file | gclient.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698