Bug 1306718 - Make builds-pending + builds-running use 40 character SHAs for revision, r=nthomas
authorEd Morley <emorley@mozilla.com>
Mon, 21 Nov 2016 11:23:59 +1300
changeset 301 3131e47d01cc33d011239a98ec44c645ce104a40
parent 300 ec4b18904893137bae0f39eb25e7e4ed36521986
child 302 50853ef148fe629f97a3e91c6f68c3da82ab4dd9
push id246
push usernthomas@mozilla.com
push dateSun, 20 Nov 2016 23:02:48 +0000
reviewersnthomas
bugs1306718
Bug 1306718 - Make builds-pending + builds-running use 40 character SHAs for revision, r=nthomas
buildapi/model/query.py
--- a/buildapi/model/query.py
+++ b/buildapi/model/query.py
@@ -147,17 +147,16 @@ def GetBuilds(branch=None, type='pending
     else:
         for r in query_results:
             real_branch = GetBranchName(r['branch'])
             if not real_branch:
                 real_branch = 'Unknown'
             revision = r['revision']
             if not revision:
                 revision = 'Unknown'
-            revision = revision[:12]
             if real_branch not in builds:
                 builds[real_branch] = {}
             if revision not in builds[real_branch]:
                 builds[real_branch][revision] = []
 
             this_result = {}
             for key,value in r.items():
                 if key not in ('branch','revision'):