Title: [241326] trunk/Tools
- Revision
- 241326
- Author
- aakash_j...@apple.com
- Date
- 2019-02-12 16:02:23 -0800 (Tue, 12 Feb 2019)
Log Message
[ews-app] Add method to fetch patch
https://bugs.webkit.org/show_bug.cgi?id=194518
Reviewed by Lucas Forschler.
* BuildSlaveSupport/ews-app/ews/models/patch.py:
(Patch.get_patch):
Modified Paths
Diff
Modified: trunk/Tools/BuildSlaveSupport/ews-app/ews/models/patch.py (241325 => 241326)
--- trunk/Tools/BuildSlaveSupport/ews-app/ews/models/patch.py 2019-02-13 00:00:25 UTC (rev 241325)
+++ trunk/Tools/BuildSlaveSupport/ews-app/ews/models/patch.py 2019-02-13 00:02:23 UTC (rev 241326)
@@ -75,6 +75,13 @@
return Patch.is_existing_patch_id(patch_id) and Patch.objects.get(pk=patch_id).sent_to_buildbot
@classmethod
+ def get_patch(cls, patch_id):
+ try:
+ return Patch.objects.get(patch_id=patch_id)
+ except:
+ return None
+
+ @classmethod
def set_sent_to_buildbot(cls, patch_id):
if not Patch.is_existing_patch_id(patch_id):
return ERR_NON_EXISTING_PATCH
Modified: trunk/Tools/ChangeLog (241325 => 241326)
--- trunk/Tools/ChangeLog 2019-02-13 00:00:25 UTC (rev 241325)
+++ trunk/Tools/ChangeLog 2019-02-13 00:02:23 UTC (rev 241326)
@@ -1,3 +1,13 @@
+2019-02-12 Aakash Jain <aakash_j...@apple.com>
+
+ [ews-app] Add method to fetch patch
+ https://bugs.webkit.org/show_bug.cgi?id=194518
+
+ Reviewed by Lucas Forschler.
+
+ * BuildSlaveSupport/ews-app/ews/models/patch.py:
+ (Patch.get_patch):
+
2019-02-12 Zalan Bujtas <za...@apple.com>
[LFC] Expand tests coverage (60 new tests -> 860)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes