author Gregory Szorc <gps@mozilla.com>
Wed, 06 Jul 2016 09:01:38 -0700
changeset 343876 398f38361dc2731b0d281ca16f11c7301a7322c1
parent 98529 f4157e8c410708d76703f19e4dfb61859bfe32d8
child 482154 748cf5155248820ef93cd79bf9c5c9c44a7c67da
permissions -rw-r--r--
Bug 1186064 - Require Visual Studio 2015 Update 2; r=glandium Per froydnj in bug 1186064 comment #23, "it makes sense to proceed with removing MSVC 2013 support." This commit does that. We also go a step further and require VS2015 Update 2 instead of just update 1. This temporarily brings us down to just 1 officially supported Visual Studio version. However, VS2015u3 was just released and is unofficially supported. Since MOZ_CRT is no longer set, references to it have been removed. MozReview-Commit-ID: 8MUR6qLzQA5

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

Pull a specified revision of chromium from SVN.

Usage: python pull-chromium.py <topsrcdir> <chromiumtree> <revision>

You will have to set up a Chromium tree before running this step. See
http://dev.chromium.org/developers/how-tos/get-the-code for details about
doing this efficiently.

import sys, os
from subprocess import check_call
from shutil import rmtree

topsrcdir, chromiumtree, rev = sys.argv[1:]

if not os.path.exists(os.path.join(topsrcdir, 'client.py')):
    print >>sys.stderr, "Incorrect topsrcdir"

if not os.path.exists(os.path.join(chromiumtree, 'src/DEPS')):
    print >>sys.stderr, "Incorrect chromium directory, missing DEPS"

check_call(['gclient', 'sync', '--force', '--revision=src@%s' % rev], cwd=chromiumtree)

chromiumsrc = os.path.join(topsrcdir, 'ipc/chromium/src')
os.path.exists(chromiumsrc) and rmtree(chromiumsrc)

def doexport(svnpath):
    localpath = os.path.join(chromiumsrc, svnpath)
    check_call(['svn', 'export', '-r', 'BASE', os.path.join(chromiumtree, 'src', svnpath), localpath])