From 3f49e2b7e5ce2b2a4ce35273a90c4aaa42d8b278 Mon Sep 17 00:00:00 2001 From: "stevet@chromium.org" Date: Thu, 27 Oct 2011 15:45:33 +0000 Subject: [PATCH] Fixed slight bug in CMDpassthru where the command name was being passed to the CL Load rather than the CL name. TEST=Try passthru commands like gcl revert and gcl stat and ensure that they perform as expected on each file in a CL. BUG=none Review URL: http://codereview.chromium.org/8404044 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@107576 0039d316-1c4b-4281-b951-d872f2087c98 --- gcl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcl.py b/gcl.py index a63af71d8..db7cd7af1 100755 --- a/gcl.py +++ b/gcl.py @@ -1339,10 +1339,11 @@ def CMDpassthru(args): It assumes a change list name is passed and is converted with the files names. """ + cl_name = args[1] args = ["svn", args[0]] if len(args) > 1: root = GetRepositoryRoot() - change_info = ChangeInfo.Load(args[1], root, True, True) + change_info = ChangeInfo.Load(cl_name, root, True, True) args.extend([os.path.join(root, x) for x in change_info.GetFileNames()]) return RunShellWithReturnCode(args, print_output=True)[1]