get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.2/patches/811594/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 811594,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/811594/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20170908133600.GA100516@adacore.com/",
    "project": {
        "id": 17,
        "url": "http://patchwork.ozlabs.org/api/1.2/projects/17/?format=api",
        "name": "GNU Compiler Collection",
        "link_name": "gcc",
        "list_id": "gcc-patches.gcc.gnu.org",
        "list_email": "gcc-patches@gcc.gnu.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20170908133600.GA100516@adacore.com>",
    "list_archive_url": null,
    "date": "2017-09-08T13:36:00",
    "name": "[Ada] New pragma Ada_2020",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "4355caf4b4d38a735ab32146e41fc53cd0ebc926",
    "submitter": {
        "id": 4418,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/4418/?format=api",
        "name": "Arnaud Charlet",
        "email": "charlet@adacore.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20170908133600.GA100516@adacore.com/mbox/",
    "series": [
        {
            "id": 2213,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/2213/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=2213",
            "date": "2017-09-08T13:36:00",
            "name": "[Ada] New pragma Ada_2020",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/2213/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/811594/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/811594/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<gcc-patches-return-461727-incoming=patchwork.ozlabs.org@gcc.gnu.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "mailing list gcc-patches@gcc.gnu.org"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=gcc-patches-return-461727-incoming=patchwork.ozlabs.org@gcc.gnu.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org; dkim=pass (1024-bit key;\n\tunprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org\n\theader.b=\"mZGDtOCZ\"; dkim-atps=neutral",
            "sourceware.org; auth=none"
        ],
        "Received": [
            "from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xpdd75RYmz9s7p\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri,  8 Sep 2017 23:36:11 +1000 (AEST)",
            "(qmail 39430 invoked by alias); 8 Sep 2017 13:36:03 -0000",
            "(qmail 39420 invoked by uid 89); 8 Sep 2017 13:36:03 -0000",
            "from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by\n\tsourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP;\n\tFri, 08 Sep 2017 13:36:01 +0000",
            "from localhost (localhost.localdomain [127.0.0.1])\tby\n\tfiltered-rock.gnat.com (Postfix) with ESMTP id 2B1505628B;\n\tFri,  8 Sep 2017 09:36:00 -0400 (EDT)",
            "from rock.gnat.com ([127.0.0.1])\tby localhost (rock.gnat.com\n\t[127.0.0.1]) (amavisd-new, port 10024)\twith LMTP id\n\tiExWGcq1f8is; Fri,  8 Sep 2017 09:36:00 -0400 (EDT)",
            "from tron.gnat.com (tron.gnat.com [205.232.38.10])\tby\n\trock.gnat.com (Postfix) with ESMTP id 1398056285;\n\tFri,  8 Sep 2017 09:36:00 -0400 (EDT)",
            "by tron.gnat.com (Postfix, from userid 4192)\tid 0FA914A4;\n\tFri,  8 Sep 2017 09:36:00 -0400 (EDT)"
        ],
        "DomainKey-Signature": "a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender:date\n\t:from:to:cc:subject:message-id:mime-version:content-type; q=dns;\n\ts=default; b=f8FGO2c8xjHhky087UTmcfpvYQonCjGjQO5+Kl6VOk5o9hxtEz\n\tuXU2ibrzUQEQ1/LPDPBcbo62D6ljgTIIWjAsLw+61P7caf5Frnb3r2devP4skfOY\n\tMxV3kB13aKVICxNjPImJnlapeLvHtszJ+VpNmjPsfkxZl4laFzcO4rByo=",
        "DKIM-Signature": "v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender:date\n\t:from:to:cc:subject:message-id:mime-version:content-type; s=\n\tdefault; bh=3TCr1ePq8vy2N6PtuUe0eC01hHE=; b=mZGDtOCZEhL2xGaecbMD\n\t3BF6CReTo8czJ3qzAXueQ0adIXh30PiRm4r9U1re7UI/QOZwaB+QKkNvlEn+Pe9q\n\t2e8z7LZe08/ByDmb+9YNbffZfCewaSO8PSffFq4/dDAZyBPQqDc37hl/emMq3v2P\n\tv208EksPa7T3+4QZcyYUGfA=",
        "Mailing-List": "contact gcc-patches-help@gcc.gnu.org; run by ezmlm",
        "Precedence": "bulk",
        "List-Id": "<gcc-patches.gcc.gnu.org>",
        "List-Unsubscribe": "<mailto:gcc-patches-unsubscribe-incoming=patchwork.ozlabs.org@gcc.gnu.org>",
        "List-Archive": "<http://gcc.gnu.org/ml/gcc-patches/>",
        "List-Post": "<mailto:gcc-patches@gcc.gnu.org>",
        "List-Help": "<mailto:gcc-patches-help@gcc.gnu.org>",
        "Sender": "gcc-patches-owner@gcc.gnu.org",
        "X-Virus-Found": "No",
        "X-Spam-SWARE-Status": "No, score=-10.5 required=5.0 tests=AWL, BAYES_00,\n\tGIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS,\n\tRCVD_IN_DNSWL_NONE,\n\tSPF_PASS autolearn=ham version=3.3.2 spammy=2020",
        "X-HELO": "rock.gnat.com",
        "Date": "Fri, 8 Sep 2017 09:36:00 -0400",
        "From": "Arnaud Charlet <charlet@adacore.com>",
        "To": "gcc-patches@gcc.gnu.org",
        "Cc": "Bob Duff <duff@adacore.com>",
        "Subject": "[Ada] New pragma Ada_2020",
        "Message-ID": "<20170908133600.GA100516@adacore.com>",
        "MIME-Version": "1.0",
        "Content-Type": "multipart/mixed; boundary=\"9amGYk9869ThD9tj\"",
        "Content-Disposition": "inline",
        "User-Agent": "Mutt/1.5.23 (2014-03-12)"
    },
    "content": "This patch allows pragma Ada_2020 to be used to enable Ada 2020 features\nthat have been implemented in GNAT. Ada_2020 is a configuration\npragma. This is in addition to the -gnat2020 command-line switch.\n\nNote: There is no synonym pragma Ada_20. We have Ada_05 and Ada_12, but\nwe decided long ago that for years after 2000, four-digit numbers look\nbetter.\n\nTested on x86_64-pc-linux-gnu, committed on trunk\n\n2017-09-08  Bob Duff  <duff@adacore.com>\n\n\t* par-prag.adb, sem_prag.adb, snames.ads-tmpl: Implement pragma\n\tAda_2020, along the same lines as the other Ada version pragmas.",
    "diff": "Index: par-prag.adb\n===================================================================\n--- par-prag.adb\t(revision 251892)\n+++ par-prag.adb\t(working copy)\n@@ -326,14 +326,16 @@\n \n    case Prag_Id is\n \n+      --  Ada version pragmas must be processed at parse time, because we want\n+      --  to set the Ada version properly at parse time to recognize the\n+      --  appropriate Ada version syntax. However, pragma Ada_2005 and higher\n+      --  have an optional argument; it is only the zero argument form that\n+      --  must be processed at parse time.\n+\n       ------------\n       -- Ada_83 --\n       ------------\n \n-      --  This pragma must be processed at parse time, since we want to set\n-      --  the Ada version properly at parse time to recognize the appropriate\n-      --  Ada version syntax.\n-\n       when Pragma_Ada_83 =>\n          if not Latest_Ada_Only then\n             Ada_Version := Ada_83;\n@@ -345,10 +347,6 @@\n       -- Ada_95 --\n       ------------\n \n-      --  This pragma must be processed at parse time, since we want to set\n-      --  the Ada version properly at parse time to recognize the appropriate\n-      --  Ada version syntax.\n-\n       when Pragma_Ada_95 =>\n          if not Latest_Ada_Only then\n             Ada_Version := Ada_95;\n@@ -360,11 +358,6 @@\n       -- Ada_05/Ada_2005 --\n       ---------------------\n \n-      --  These pragmas must be processed at parse time, since we want to set\n-      --  the Ada version properly at parse time to recognize the appropriate\n-      --  Ada version syntax. However, it is only the zero argument form that\n-      --  must be processed at parse time.\n-\n       when Pragma_Ada_05\n          | Pragma_Ada_2005\n       =>\n@@ -378,11 +371,6 @@\n       -- Ada_12/Ada_2012 --\n       ---------------------\n \n-      --  These pragmas must be processed at parse time, since we want to set\n-      --  the Ada version properly at parse time to recognize the appropriate\n-      --  Ada version syntax. However, it is only the zero argument form that\n-      --  must be processed at parse time.\n-\n       when Pragma_Ada_12\n          | Pragma_Ada_2012\n       =>\n@@ -392,6 +380,17 @@\n             Ada_Version_Pragma := Pragma_Node;\n          end if;\n \n+      --------------\n+      -- Ada_2020 --\n+      --------------\n+\n+      when Pragma_Ada_2020 =>\n+         if Arg_Count = 0 then\n+            Ada_Version := Ada_2020;\n+            Ada_Version_Explicit := Ada_2020;\n+            Ada_Version_Pragma := Pragma_Node;\n+         end if;\n+\n       ---------------------------\n       -- Compiler_Unit_Warning --\n       ---------------------------\nIndex: sem_prag.adb\n===================================================================\n--- sem_prag.adb\t(revision 251893)\n+++ sem_prag.adb\t(working copy)\n@@ -11835,7 +11835,7 @@\n \n          --  The one argument form is used for managing the transition from Ada\n          --  2005 to Ada 2012 in the run-time library. If an entity is marked\n-         --  as Ada_201 only, then referencing the entity in any pre-Ada_2012\n+         --  as Ada_2012 only, then referencing the entity in any pre-Ada_2012\n          --  mode will generate a warning. In addition, in any pre-Ada_2012\n          --  mode, a preference rule is established which does not choose\n          --  such an entity unless it is unambiguously specified. This avoids\n@@ -11883,6 +11883,28 @@\n             end if;\n          end;\n \n+         --------------\n+         -- Ada_2020 --\n+         --------------\n+\n+         --  pragma Ada_2020;\n+\n+         --  Note: this pragma also has some specific processing in Par.Prag\n+         --  because we want to set the Ada 2020 version mode during parsing.\n+\n+         when Pragma_Ada_2020 =>\n+            GNAT_Pragma;\n+\n+            Check_Arg_Count (0);\n+\n+            Check_Valid_Configuration_Pragma;\n+\n+            --  Now set appropriate Ada mode\n+\n+            Ada_Version          := Ada_2020;\n+            Ada_Version_Explicit := Ada_2020;\n+            Ada_Version_Pragma   := N;\n+\n          ----------------------\n          -- All_Calls_Remote --\n          ----------------------\n@@ -29419,6 +29441,7 @@\n       Pragma_Ada_2005                       => -1,\n       Pragma_Ada_12                         => -1,\n       Pragma_Ada_2012                       => -1,\n+      Pragma_Ada_2020                       => -1,\n       Pragma_All_Calls_Remote               => -1,\n       Pragma_Allow_Integer_Address          => -1,\n       Pragma_Annotate                       => 93,\nIndex: snames.ads-tmpl\n===================================================================\n--- snames.ads-tmpl\t(revision 251892)\n+++ snames.ads-tmpl\t(working copy)\n@@ -388,6 +388,7 @@\n    Name_Ada_2005                       : constant Name_Id := N + $; -- GNAT\n    Name_Ada_12                         : constant Name_Id := N + $; -- GNAT\n    Name_Ada_2012                       : constant Name_Id := N + $; -- GNAT\n+   Name_Ada_2020                       : constant Name_Id := N + $; -- GNAT\n    Name_Allow_Integer_Address          : constant Name_Id := N + $; -- GNAT\n    Name_Annotate                       : constant Name_Id := N + $; -- GNAT\n    Name_Assertion_Policy               : constant Name_Id := N + $; -- Ada 05\n@@ -1779,6 +1780,9 @@\n       Pragma_Ada_2005,\n       Pragma_Ada_12,\n       Pragma_Ada_2012,\n+      Pragma_Ada_2020,\n+      --  Note that there is no Pragma_Ada_20. Pragma_Ada_05/12 are for\n+      --  compatibility reasons only; the full year names are preferred.\n       Pragma_Allow_Integer_Address,\n       Pragma_Annotate,\n       Pragma_Assertion_Policy,\n",
    "prefixes": [
        "Ada"
    ]
}