Commit 3f49e2b7 authored by stevet@chromium.org's avatar stevet@chromium.org

Fixed slight bug in CMDpassthru where the command name was being passed to the...

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
parent b3528b0a
......@@ -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]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment