Simplify call site.

Do a review comment I forgot to apply in a previous change.

TEST=none

Review URL: http://codereview.chromium.org/508012

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@35124 0039d316-1c4b-4281-b951-d872f2087c98
experimental/szager/collated-output
maruel@chromium.org 16 years ago
parent f2f9d554d4
commit 1227c7dedc

@ -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):

Loading…
Cancel
Save