Show a patch.

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

{
    "id": 2379,
    "url": "https://patchwork.libcamera.org/api/patches/2379/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/2379/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/projects/1/?format=api",
        "name": "libcamera",
        "link_name": "libcamera",
        "list_id": "libcamera_core",
        "list_email": "libcamera-devel@lists.libcamera.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20191127084909.10612-1-laurent.pinchart@ideasonboard.com>",
    "date": "2019-11-27T08:49:05",
    "name": "[libcamera-devel,1/5] test: message: Fix message handling in MessageReceiver",
    "commit_ref": "1f6342f46bda8d2c4bc693dda01f6b5385e11cf6",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "fd8305987e9d75ee8fd409b1edc3239c2e047314",
    "submitter": {
        "id": 2,
        "url": "https://patchwork.libcamera.org/api/people/2/?format=api",
        "name": "Laurent Pinchart",
        "email": "laurent.pinchart@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/2379/mbox/",
    "series": [
        {
            "id": 580,
            "url": "https://patchwork.libcamera.org/api/series/580/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=580",
            "date": "2019-11-27T08:49:05",
            "name": "[libcamera-devel,1/5] test: message: Fix message handling in MessageReceiver",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/580/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/2379/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/2379/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<laurent.pinchart@ideasonboard.com>",
        "Received": [
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 156CB60BB8\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 27 Nov 2019 09:49:23 +0100 (CET)",
            "from pendragon.tok.corp.google.com (unknown [104.132.253.101])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id F1C0B9F4\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 27 Nov 2019 09:49:21 +0100 (CET)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1574844562;\n\tbh=hu6mz7QBMbOxyC/hhxvc7fqXBXf/RNmYMr9lBCCW/Bk=;\n\th=From:To:Subject:Date:From;\n\tb=ceunxkubhPAqyz7tYPLtPo/kRA0ghchLFVWVqKq9p2ySLiqec0CH0V+VeL4nPSGHp\n\tcaQ6lsFSUld2tJSpnUiBaSlSsVq+3vRfX2mCeXi0ZrGObrVDNyYu7mxMkBWk6/sYaj\n\tNVKFny94T43o+KeXJ8mNYh0GU/hkxsbz0q1FOQsI=",
        "From": "Laurent Pinchart <laurent.pinchart@ideasonboard.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Wed, 27 Nov 2019 10:49:05 +0200",
        "Message-Id": "<20191127084909.10612-1-laurent.pinchart@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.23.0",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH 1/5] test: message: Fix message handling\n\tin MessageReceiver",
        "X-BeenThere": "libcamera-devel@lists.libcamera.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "<libcamera-devel.lists.libcamera.org>",
        "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>",
        "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>",
        "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>",
        "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>",
        "X-List-Received-Date": "Wed, 27 Nov 2019 08:49:23 -0000"
    },
    "content": "Forward messages that we don't handle to the base Object class, to avoid\nboth blocking the ThreadMove message and mistaking it as the test\nmessage.\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n test/message.cpp | 5 +++++\n 1 file changed, 5 insertions(+)",
    "diff": "diff --git a/test/message.cpp b/test/message.cpp\nindex 3775c30a20b3..cf21d5ca50d1 100644\n--- a/test/message.cpp\n+++ b/test/message.cpp\n@@ -37,6 +37,11 @@ public:\n protected:\n \tvoid message(Message *msg)\n \t{\n+\t\tif (msg->type() != Message::None) {\n+\t\t\tObject::message(msg);\n+\t\t\treturn;\n+\t\t}\n+\n \t\tif (thread() != Thread::current())\n \t\t\tstatus_ = InvalidThread;\n \t\telse\n",
    "prefixes": [
        "libcamera-devel",
        "1/5"
    ]
}