From 7fc031a9d326c43038117546626125feeea8d56c Mon Sep 17 00:00:00 2001 From: Zeno Albisser Date: Tue, 29 Oct 2013 09:31:34 +0100 Subject: Implement parsing of Chromium .DEPS files. This is necessary to be able to checkout a chromium release branch. Chromium release branches do not make use of git submodule. Instead the dependencies or submodules are specified in a .DEPS.git file. Given some python scopes and callbacks for resolving variables, such a file can be invoked like a python script. The dependencies will then be exported into the provided scopes and we can use that information to initialize git submodules. Change-Id: Ibab09b1077720b73f89efff16d38b308f31cf2ab Reviewed-by: Zeno Albisser --- init-repository.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'init-repository.py') diff --git a/init-repository.py b/init-repository.py index 1182ff66b..fa4508b60 100755 --- a/init-repository.py +++ b/init-repository.py @@ -120,6 +120,10 @@ def initUpstreamSubmodules(): chromium_url = 'https://chromium.googlesource.com/chromium/src.git' ninja_shasum = '40b51a0b986b8675e15b0cd1b10c272bf51fdb84' chromium_shasum = '29d2d710e0e7961dff032ad4ab73887cc33122bb' + # Do not define a branch for now. + # We will turn this on, once we actually switch to using the release branch. + #chromium_ref = 'refs/branch-heads/1599' + chromium_ref = '' os.chdir(qtwebengine_src) current_submodules = subprocess.check_output(['git', 'submodule']) @@ -139,6 +143,7 @@ def initUpstreamSubmodules(): chromiumSubmodule = GitSubmodule.Submodule() chromiumSubmodule.path = '3rdparty_upstream/chromium' chromiumSubmodule.shasum = chromium_shasum + chromiumSubmodule.ref = chromium_ref chromiumSubmodule.url = chromium_url chromiumSubmodule.os = 'all' if args.android: -- cgit v1.2.3