diff options
author | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2015-08-14 11:38:45 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2015-08-14 17:16:47 +0000 |
commit | 3a97ca8dd9b96b599ae2d33e40df0dd2f7ea5859 (patch) | |
tree | 43cc572ba067417c7341db81f71ae7cc6e0fcc3e /chromium/build/util | |
parent | f61ab1ac7f855cd281809255c0aedbb1895e1823 (diff) | |
download | qtwebengine-chromium-3a97ca8dd9b96b599ae2d33e40df0dd2f7ea5859.tar.gz |
BASELINE: Update chromium to 45.0.2454.40
Change-Id: Id2121d9f11a8fc633677236c65a3e41feef589e4
Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
Diffstat (limited to 'chromium/build/util')
-rw-r--r-- | chromium/build/util/BUILD.gn | 20 | ||||
-rw-r--r-- | chromium/build/util/LASTCHANGE | 2 | ||||
-rw-r--r-- | chromium/build/util/LASTCHANGE.blink | 2 | ||||
-rwxr-xr-x | chromium/build/util/lastchange.py | 23 |
4 files changed, 38 insertions, 9 deletions
diff --git a/chromium/build/util/BUILD.gn b/chromium/build/util/BUILD.gn index c18f0ce25b9..29dd9439cad 100644 --- a/chromium/build/util/BUILD.gn +++ b/chromium/build/util/BUILD.gn @@ -26,3 +26,23 @@ action("webkit_version") { rebase_path(output_file, root_build_dir), ] } + +action("chrome_version_json") { + script = "version.py" + _chrome_version_path = "//chrome/VERSION" + inputs = [ + _chrome_version_path, + ] + _output_file = "$root_gen_dir/CHROME_VERSION.json" + outputs = [ + _output_file, + ] + args = [ + "--file", + rebase_path(_chrome_version_path, root_build_dir), + "--template", + "{\"full-quoted\": \"\\\"@MAJOR@.@MINOR@.@BUILD@.@PATCH@\\\"\"}", + "--output", + rebase_path(_output_file, root_build_dir), + ] +} diff --git a/chromium/build/util/LASTCHANGE b/chromium/build/util/LASTCHANGE index 5cecdbfc2ca..7bf6f24cdde 100644 --- a/chromium/build/util/LASTCHANGE +++ b/chromium/build/util/LASTCHANGE @@ -1 +1 @@ -LASTCHANGE=5aba4ca83214d51422f8b1804c68fa1762456d5c +LASTCHANGE=c7a668438ce400267ff930d453a9c730bcb4a353 diff --git a/chromium/build/util/LASTCHANGE.blink b/chromium/build/util/LASTCHANGE.blink index 8fb14b5668b..a728bf3ccd0 100644 --- a/chromium/build/util/LASTCHANGE.blink +++ b/chromium/build/util/LASTCHANGE.blink @@ -1 +1 @@ -LASTCHANGE=9d63410d9b510e7261ccd72b017e6dbee5f4891d +LASTCHANGE=c479368f77880d99cfc4d44355d715b4fc21528f diff --git a/chromium/build/util/lastchange.py b/chromium/build/util/lastchange.py index 1a7f5199d2e..3f3ee4af471 100755 --- a/chromium/build/util/lastchange.py +++ b/chromium/build/util/lastchange.py @@ -121,7 +121,7 @@ def FetchGitRevision(directory): return VersionInfo('git', '%s-%s' % (hsh, pos)) -def FetchGitSVNURLAndRevision(directory, svn_url_regex): +def FetchGitSVNURLAndRevision(directory, svn_url_regex, go_deeper): """ Fetch the Subversion URL and revision through Git. @@ -130,7 +130,10 @@ def FetchGitSVNURLAndRevision(directory, svn_url_regex): Returns: A tuple containing the Subversion URL and revision. """ - proc = RunGitCommand(directory, ['log', '-1', '--format=%b']) + git_args = ['log', '-1', '--format=%b'] + if go_deeper: + git_args.append('--grep=git-svn-id') + proc = RunGitCommand(directory, git_args) if proc: output = proc.communicate()[0].strip() if proc.returncode == 0 and output: @@ -149,20 +152,21 @@ def FetchGitSVNURLAndRevision(directory, svn_url_regex): return None, None -def FetchGitSVNRevision(directory, svn_url_regex): +def FetchGitSVNRevision(directory, svn_url_regex, go_deeper): """ Fetch the Git-SVN identifier for the local tree. Errors are swallowed. """ - url, revision = FetchGitSVNURLAndRevision(directory, svn_url_regex) + url, revision = FetchGitSVNURLAndRevision(directory, svn_url_regex, go_deeper) if url and revision: return VersionInfo(url, revision) return None def FetchVersionInfo(default_lastchange, directory=None, - directory_regex_prior_to_src_url='chrome|blink|svn'): + directory_regex_prior_to_src_url='chrome|blink|svn', + go_deeper=False): """ Returns the last change (in the form of a branch, revision tuple), from some appropriate revision control system. @@ -171,7 +175,7 @@ def FetchVersionInfo(default_lastchange, directory=None, r'.*/(' + directory_regex_prior_to_src_url + r')(/.*)') version_info = (FetchSVNRevision(directory, svn_url_regex) or - FetchGitSVNRevision(directory, svn_url_regex) or + FetchGitSVNRevision(directory, svn_url_regex, go_deeper) or FetchGitRevision(directory)) if not version_info: if default_lastchange and os.path.exists(default_lastchange): @@ -256,6 +260,9 @@ def main(argv=None): "file-output-related options.") parser.add_option("-s", "--source-dir", metavar="DIR", help="Use repository in the given directory.") + parser.add_option("--git-svn-go-deeper", action='store_true', + help="In a Git-SVN repo, dig down to the last committed " + + "SVN change (historic behaviour).") opts, args = parser.parse_args(argv[1:]) out_file = opts.output @@ -274,7 +281,9 @@ def main(argv=None): else: src_dir = os.path.dirname(os.path.abspath(__file__)) - version_info = FetchVersionInfo(opts.default_lastchange, src_dir) + version_info = FetchVersionInfo(opts.default_lastchange, + directory=src_dir, + go_deeper=opts.git_svn_go_deeper) if version_info.revision == None: version_info.revision = '0' |