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

Unified Diff: gclient.py

Issue 500903003: Ensure deps_file=.DEPS.git in .gclient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: doc fix Created 6 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
diff --git a/gclient.py b/gclient.py
index 1aebc68fe0ec612b2e6840fa99f922ec66d0cdef..ecc9fe3847e6781be87b18fa3d89b05d69b0246c 100755
--- a/gclient.py
+++ b/gclient.py
@@ -1294,6 +1294,20 @@ http://www.chromium.org/developers/how-tos/get-the-code
url_val.s = CHROMIUM_SRC_URL
modified = True
+ # Ensure deps_file is set to .DEPS.git. We enforce this here to smooth
+ # over switching between pre-git-migration and post-git-migration
+ # revisions.
+ # - For pre-migration revisions, .DEPS.git must be explicitly set.
+ # - For post-migration revisions, .DEPS.git is not present, so gclient
+ # will correctly fall back to DEPS.
+ if url_val.s == CHROMIUM_SRC_URL:
+ deps_file_idx = ast_dict_index(solution, 'deps_file')
+ if deps_file_idx != -1:
+ continue
+ solution.keys.append(ast.Str('deps_file'))
+ solution.values.append(ast.Str('.DEPS.git'))
+ modified = True
+
if not modified:
return self
« 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