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

Unified Diff: gcl.py

Issue 508012: Simplify call site. (Closed)
Patch Set: Created 11 years 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 | no next file » | 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 80250cd04473628d1c26763457075848f5aacebe..4dfed3389635abbaf2a736a3cf6121614d6b94ea 100755
--- a/gcl.py
+++ b/gcl.py
@@ -865,16 +865,14 @@ def TryChange(change_info, args, swallow_exception):
if change_info.patchset:
trychange_args.extend(["--patchset", str(change_info.patchset)])
trychange_args.extend(args)
- trychange.TryChange(trychange_args,
- file_list=change_info.GetFileNames(),
- swallow_exception=swallow_exception,
- prog='gcl try')
+ file_list = change_info.GetFileNames()
else:
trychange_args.extend(args)
- trychange.TryChange(trychange_args,
- file_list=None,
- swallow_exception=swallow_exception,
- prog='gcl try')
+ file_list = None
+ trychange.TryChange(trychange_args,
+ file_list=file_list,
+ swallow_exception=swallow_exception,
+ prog='gcl try')
def Commit(change_info, args):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698