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
experimental/szager/collated-output
stevet@chromium.org 14 years ago
parent b3528b0a45
commit 3f49e2b7e5

@ -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]

Loading…
Cancel
Save