From 052af4cea213359d15aa2391ea4f63f493218577 Mon Sep 17 00:00:00 2001 From: kjellander Date: Wed, 30 Mar 2016 02:30:50 -0700 Subject: [PATCH] autoroller: Use 10 characters for shortened Git hashes. Recently, the shortened hash https://chromium.googlesource.com/chromium/src/+/355fabf was not suffucient for the Chromium repo. Adding three more should reduce the chance of this happening by 16^3. NOTRY=True Review URL: https://codereview.webrtc.org/1841563004 Cr-Commit-Position: refs/heads/master@{#12156} --- tools/autoroller/roll_chromium_revision.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/autoroller/roll_chromium_revision.py b/tools/autoroller/roll_chromium_revision.py index 9aac93fdc2..c5f830a254 100755 --- a/tools/autoroller/roll_chromium_revision.py +++ b/tools/autoroller/roll_chromium_revision.py @@ -253,8 +253,8 @@ def CalculateChangedClang(new_cr_rev): def GenerateCommitMessage(current_cr_rev, new_cr_rev, current_commit_pos, new_commit_pos, changed_deps_list, clang_change): - current_cr_rev = current_cr_rev[0:7] - new_cr_rev = new_cr_rev[0:7] + current_cr_rev = current_cr_rev[0:10] + new_cr_rev = new_cr_rev[0:10] rev_interval = '%s..%s' % (current_cr_rev, new_cr_rev) git_number_interval = '%s:%s' % (current_commit_pos, new_commit_pos) @@ -271,8 +271,8 @@ def GenerateCommitMessage(current_cr_rev, new_cr_rev, current_commit_pos, for c in changed_deps_list: commit_msg.append('* %s: %s/+log/%s..%s' % (c.path, c.url, - c.current_rev[0:7], - c.new_rev[0:7])) + c.current_rev[0:10], + c.new_rev[0:10])) if 'libvpx' in c.path: tbr_authors += 'marpan@webrtc.org, stefan@webrtc.org, '