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

Unified Diff: deps_utils.py

Issue 190853003: Remove special case svn to git translations for FFmpeg. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/deps2git/
Patch Set: Rebase. Created 6 years, 7 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 | « deps2git.py ('k') | svn_to_git_public.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: deps_utils.py
===================================================================
--- deps_utils.py (revision 270250)
+++ deps_utils.py (working copy)
@@ -7,17 +7,12 @@
import errno
import os
-import re
import shutil
import subprocess
import sys
import time
-# Used by Varify() to automatically convert variable names tagged with this
-# prefix into Var('<variable name>').
-VARIFY_MARKER_TAG_PREFIX = 'VARIFY_MARKER_TAG_'
-
class VarImpl(object):
"""Implement the Var function used within the DEPS file."""
@@ -51,11 +46,10 @@
local_scope.setdefault('include_rules', [])
local_scope.setdefault('skip_child_includes', [])
local_scope.setdefault('hooks', [])
- local_scope.setdefault('vars', {})
return (local_scope['deps'], local_scope['deps_os'],
local_scope['include_rules'], local_scope['skip_child_includes'],
- local_scope['hooks'], local_scope['vars'])
+ local_scope['hooks'])
def PrettyDeps(deps, indent=0):
@@ -107,11 +101,6 @@
deps = deps.replace('VAR_WEBKIT_REV\'', '\' + Var(\'webkit_rev\')')
deps = deps.replace('VAR_ANGLE_REVISION\'',
'\' + \'@\' + Var(\'angle_revision\')')
-
- # Try to replace all instances of form "marker_prefix_<name>'" with
- # "' + Var('<name>')". If there are no matches, nothing is done.
- deps = re.sub(VARIFY_MARKER_TAG_PREFIX + '_(\w+)\'',
- lambda match: '\' + Var(\'%s\')' % match.group(1), deps)
return deps
« no previous file with comments | « deps2git.py ('k') | svn_to_git_public.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698