Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(438)

Unified Diff: gclient.py

Issue 164068: Splice matching_files_list in $matching_files' place in gclient.py.... (Closed) Base URL: http://src.chromium.org/svn/trunk/tools/depot_tools/
Patch Set: Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gclient.py
===================================================================
--- gclient.py (revision 22609)
+++ gclient.py (working copy)
@@ -1233,8 +1233,8 @@
command[0] = sys.executable
if '$matching_files' in command:
- command.remove('$matching_files')
- command.extend(matching_file_list)
+ splice_index = command.index('$matching_files')
+ command[splice_index:splice_index + 1] = matching_file_list
M-A Ruel 2009/08/06 16:57:12 That works for multiple files? If so, lgtm.
# 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698