diff options
author | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2015-09-28 18:37:14 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2015-09-29 07:47:06 +0000 |
commit | 0e8ff63a407fe323e215bb1a2c423c09a4747c8a (patch) | |
tree | e27e357e125d2d705bd504e1e3c8a3da1ed20f1d /chromium/build/util | |
parent | c3d0bb5bb15d008606b18b865841e19cd9bb5847 (diff) | |
download | qtwebengine-chromium-upstream-45.tar.gz |
BASELINE: Update chromium to 45.0.2454.101upstream-45
Also adds web_cache component
Change-Id: I51238ceea8ee99854cc4989ae70a4fc2fc6bedcb
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Diffstat (limited to 'chromium/build/util')
-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 | 14 |
3 files changed, 11 insertions, 7 deletions
diff --git a/chromium/build/util/LASTCHANGE b/chromium/build/util/LASTCHANGE index e8df4b9dcb5..146de03183c 100644 --- a/chromium/build/util/LASTCHANGE +++ b/chromium/build/util/LASTCHANGE @@ -1 +1 @@ -LASTCHANGE=1f6e893ac083faeb6f7779a9aa740c4bd7db248c +LASTCHANGE=25cac1820a03dc7a2feb10c40813c9e3dc418fb0 diff --git a/chromium/build/util/LASTCHANGE.blink b/chromium/build/util/LASTCHANGE.blink index 16b0ebb3702..5b2c6ec0bbf 100644 --- a/chromium/build/util/LASTCHANGE.blink +++ b/chromium/build/util/LASTCHANGE.blink @@ -1 +1 @@ -LASTCHANGE=cb0d6dcc6b193a8927ceea52f508124b067589db +LASTCHANGE=8cee86b1597ea97322ea5d54881fc04be701d11c diff --git a/chromium/build/util/lastchange.py b/chromium/build/util/lastchange.py index 3f3ee4af471..ce1926afc4d 100755 --- a/chromium/build/util/lastchange.py +++ b/chromium/build/util/lastchange.py @@ -90,7 +90,7 @@ def RunGitCommand(directory, command): return None -def FetchGitRevision(directory): +def FetchGitRevision(directory, hash_only): """ Fetch the Git hash for a given directory. @@ -116,7 +116,7 @@ def FetchGitRevision(directory): if line.startswith('Cr-Commit-Position:'): pos = line.rsplit()[-1].strip() break - if not pos: + if hash_only or not pos: return VersionInfo('git', hsh) return VersionInfo('git', '%s-%s' % (hsh, pos)) @@ -166,7 +166,7 @@ def FetchGitSVNRevision(directory, svn_url_regex, go_deeper): def FetchVersionInfo(default_lastchange, directory=None, directory_regex_prior_to_src_url='chrome|blink|svn', - go_deeper=False): + go_deeper=False, hash_only=False): """ Returns the last change (in the form of a branch, revision tuple), from some appropriate revision control system. @@ -176,7 +176,7 @@ def FetchVersionInfo(default_lastchange, directory=None, version_info = (FetchSVNRevision(directory, svn_url_regex) or FetchGitSVNRevision(directory, svn_url_regex, go_deeper) or - FetchGitRevision(directory)) + FetchGitRevision(directory, hash_only)) if not version_info: if default_lastchange and os.path.exists(default_lastchange): revision = open(default_lastchange, 'r').read().strip() @@ -263,6 +263,9 @@ def main(argv=None): 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).") + parser.add_option("--git-hash-only", action="store_true", + help="In a Git repo with commit positions, only report " + + "the hash.") opts, args = parser.parse_args(argv[1:]) out_file = opts.output @@ -283,7 +286,8 @@ def main(argv=None): version_info = FetchVersionInfo(opts.default_lastchange, directory=src_dir, - go_deeper=opts.git_svn_go_deeper) + go_deeper=opts.git_svn_go_deeper, + hash_only=opts.git_hash_only) if version_info.revision == None: version_info.revision = '0' |