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}
This commit is contained in:
@ -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, '
|
||||
|
||||
|
||||
Reference in New Issue
Block a user