Build fix. For OS versions, we can end up with non-alphanumeric revision.
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 1 Apr 2017 00:45:51 +0000 (00:45 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 1 Apr 2017 00:45:51 +0000 (00:45 +0000)
Delete the code path only used by the v2 UI since nobody uses that now.

* public/api/commits.php:
(main):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@214707 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Websites/perf.webkit.org/ChangeLog
Websites/perf.webkit.org/public/api/commits.php

index 430d14f..3517766 100644 (file)
@@ -1,3 +1,11 @@
+2017-03-31  Ryosuke Niwa  <rniwa@webkit.org>
+
+        Build fix. For OS versions, we can end up with non-alphanumeric revision.
+        Delete the code path only used by the v2 UI since nobody uses that now.
+
+        * public/api/commits.php:
+        (main):
+
 2017-03-30  Ryosuke Niwa  <rniwa@webkit.org>
 
         sync-buildbot.js can schedule more than one build per builder
index c11dd6b..54316db 100644 (file)
@@ -38,14 +38,8 @@ function main($paths) {
             $commits = $fetcher->fetch_last_reported_between_orders($repository_id, $from, $to);
         else
             $commits = $fetcher->fetch_last_reported($repository_id);
-    } else if (ctype_alnum($filter)) {
+    } else
         $commits = $fetcher->fetch_revision($repository_id, $filter);
-    } else { // V2 UI compatibility.
-        $matches = array();
-        if (!preg_match('/([A-Za-z0-9]+)[\:\-]([A-Za-z0-9]+)/', $filter, $matches))
-            exit_with_error('UnknownFilter', array('repositoryName' => $repository_name, 'filter' => $filter));
-        $commits = $fetcher->fetch_between($repository_id, $matches[1], $matches[2]);
-    }
 
     if (!is_array($commits))
         exit_with_error('FailedToFetchCommits', array('repository' => $repository_id, 'filter' => $filter));