Changeset 176361 in webkit
- Timestamp:
- Nov 19, 2014 3:58:03 PM (9 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotIteration.js
r173381 r176361 97 97 } 98 98 99 function parseRevisionProperty(property, key )99 function parseRevisionProperty(property, key, fallbackKey) 100 100 { 101 101 if (!property) 102 102 return null; 103 103 var value = property[1]; 104 return parseInt(isMultiCodebaseGotRevisionProperty(property) ? value[key] : value, 10); 104 if (isMultiCodebaseGotRevisionProperty(property)) 105 value = (key in value) ? value[key] : value[fallbackKey]; 106 return parseInt(value); 105 107 } 106 108 … … 243 245 // ["got_revision",{"Internal":"1357","WebKitOpenSource":"2468"},"Source"] 244 246 // OR 245 // ["got_revision","2468_1357","Source"]246 // OR247 247 // ["got_revision","2468","Source"] 248 248 // … … 253 253 // a dictionary. 254 254 255 var openSourceRevisionProperty = data.properties.findFirst(function(property) { return property[0] === "got_revision" || property[0] === "revision" || property[0] === "opensource_got_revision"; });256 this.openSourceRevision = parseRevisionProperty(openSourceRevisionProperty, "WebKit" );257 258 var internalRevisionProperty = data.properties.findFirst(function(property) { return property[0] === "internal_got_revision" ||isMultiCodebaseGotRevisionProperty(property); });259 this.internalRevision = parseRevisionProperty(internalRevisionProperty, "Internal" );255 var openSourceRevisionProperty = data.properties.findFirst(function(property) { return property[0] === "got_revision"; }); 256 this.openSourceRevision = parseRevisionProperty(openSourceRevisionProperty, "WebKit", "opensource"); 257 258 var internalRevisionProperty = data.properties.findFirst(function(property) { return isMultiCodebaseGotRevisionProperty(property); }); 259 this.internalRevision = parseRevisionProperty(internalRevisionProperty, "Internal", "internal"); 260 260 261 261 function sourceStampChanges(sourceStamp) { -
trunk/Tools/ChangeLog
r176343 r176361 1 2014-11-19 Dana Burkart <dburkart@apple.com> 2 3 Work around the fact that different masters may have different names for their codebases. 4 https://bugs.webkit.org/show_bug.cgi?id=138878 5 6 Reviewed by Mark Rowe. 7 8 * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotIteration.js: 9 (parseRevisionProperty): Changed. 10 Take a "fallback key" in addition to the primary key, so we can deal with inconsistencies in 11 opensource / internal codebase naming convention. 12 1 13 2014-11-19 Chris Fleizach <cfleizach@apple.com> 2 14
Note: See TracChangeset
for help on using the changeset viewer.