Splice matching_files_list in $matching_files' place in gclient.py.

Based on Mark Mentovai's mail.
Review URL: http://codereview.chromium.org/164068

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@22616 0039d316-1c4b-4281-b951-d872f2087c98
parent 8b60d0d4
...@@ -1233,8 +1233,8 @@ class GClient(object): ...@@ -1233,8 +1233,8 @@ class GClient(object):
command[0] = sys.executable command[0] = sys.executable
if '$matching_files' in command: if '$matching_files' in command:
command.remove('$matching_files') splice_index = command.index('$matching_files')
command.extend(matching_file_list) command[splice_index:splice_index + 1] = matching_file_list
# Use a discrete exit status code of 2 to indicate that a hook action # Use a discrete exit status code of 2 to indicate that a hook action
# failed. Users of this script may wish to treat hook action failures # failed. Users of this script may wish to treat hook action failures
......
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