diff options
author | agable <agable@chromium.org> | 2014-08-24 11:40:55 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-08-24 18:43:13 +0000 |
commit | 15a2a65986f6dec827cce5bc7d58601ed9b1eb2a (patch) | |
tree | 6a57a8aa1e89ca04d6b78ce5c2a4fa4a589ace6b | |
parent | 8a792dcd00abdea12272f33b03327925e19e43a5 (diff) | |
download | chromium_src-15a2a65986f6dec827cce5bc7d58601ed9b1eb2a.zip chromium_src-15a2a65986f6dec827cce5bc7d58601ed9b1eb2a.tar.gz chromium_src-15a2a65986f6dec827cce5bc7d58601ed9b1eb2a.tar.bz2 |
Further shorten the lastchange string.
Even the 40-character hash causes problems when the pieces of the string before
it push the length to >64 characters. Truncating it is a temporary fix until
we discuss ways to accept strings longer than 64 chars.
R=cmp@chromium.org, scottmg@chromium.org
NOTRY=True
BUG=406783
Review URL: https://codereview.chromium.org/499133003
Cr-Commit-Position: refs/heads/master@{#291626}
-rwxr-xr-x | build/util/lastchange.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build/util/lastchange.py b/build/util/lastchange.py index 93c6958..e938c3d 100755 --- a/build/util/lastchange.py +++ b/build/util/lastchange.py @@ -109,7 +109,9 @@ def FetchGitRevision(directory): hsh = output if not hsh: return None - return VersionInfo('git', hsh) + # TODO(agable): Figure out a way to use the full hash instead of just a + # 12-character short hash. See crbug.com/406783. + return VersionInfo('git', hsh[:12]) def FetchGitSVNURLAndRevision(directory, svn_url_regex): |