Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/202066/?format=api
{ "id": 202066, "url": "http://patchwork.ozlabs.org/api/patches/202066/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1353979300-13927-2-git-send-email-dianders@chromium.org/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api", "name": "U-Boot", "link_name": "uboot", "list_id": "u-boot.lists.denx.de", "list_email": "u-boot@lists.denx.de", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1353979300-13927-2-git-send-email-dianders@chromium.org>", "list_archive_url": null, "date": "2012-11-27T01:21:40", "name": "[U-Boot,2/2] patman: Allow tests to run even if patman is in the path", "commit_ref": "a970048e755768e7d7d10c6b209999133ef75814", "pull_url": null, "state": "accepted", "archived": false, "hash": "d167894211dfd10f269f6702875a7a0e22c06353", "submitter": { "id": 9763, "url": "http://patchwork.ozlabs.org/api/people/9763/?format=api", "name": "Douglas Anderson", "email": "dianders@chromium.org" }, "delegate": { "id": 3184, "url": "http://patchwork.ozlabs.org/api/users/3184/?format=api", "username": "sjg", "first_name": "Simon", "last_name": "Glass", "email": "sjg@chromium.org" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1353979300-13927-2-git-send-email-dianders@chromium.org/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/202066/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/202066/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Received": [ "from theia.denx.de (theia.denx.de [85.214.87.163])\n\tby ozlabs.org (Postfix) with ESMTP id BEFB02C007D\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 27 Nov 2012 12:45:26 +1100 (EST)", "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id A563F4A08E;\n\tTue, 27 Nov 2012 02:45:22 +0100 (CET)", "from theia.denx.de ([127.0.0.1])\n\tby localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 3ZnzxckkB2hX; Tue, 27 Nov 2012 02:45:22 +0100 (CET)", "from theia.denx.de (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id B883E4A0A5;\n\tTue, 27 Nov 2012 02:45:18 +0100 (CET)", "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 59B7E4A0A5\n\tfor <u-boot@lists.denx.de>; Tue, 27 Nov 2012 02:45:16 +0100 (CET)", "from theia.denx.de ([127.0.0.1])\n\tby localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 5vejrs+CNuAJ for <u-boot@lists.denx.de>;\n\tTue, 27 Nov 2012 02:45:14 +0100 (CET)", "from mail-vc0-f202.google.com (mail-vc0-f202.google.com\n\t[209.85.220.202])\n\tby theia.denx.de (Postfix) with ESMTPS id E13EB4A08E\n\tfor <u-boot@lists.denx.de>; Tue, 27 Nov 2012 02:45:11 +0100 (CET)", "by mail-vc0-f202.google.com with SMTP id m8so863949vcd.3\n\tfor <u-boot@lists.denx.de>; Mon, 26 Nov 2012 17:45:08 -0800 (PST)", "by 10.236.173.201 with SMTP id v49mr9543586yhl.19.1353979315508;\n\tMon, 26 Nov 2012 17:21:55 -0800 (PST)", "from wpzn4.hot.corp.google.com (216-239-44-65.google.com\n\t[216.239.44.65]) by gmr-mx.google.com with ESMTPS id\n\ti27si1178102yhe.4.2012.11.26.17.21.55\n\t(version=TLSv1/SSLv3 cipher=AES128-SHA);\n\tMon, 26 Nov 2012 17:21:55 -0800 (PST)", "from tictac.mtv.corp.google.com (tictac.mtv.corp.google.com\n\t[172.22.73.80])\n\tby wpzn4.hot.corp.google.com (Postfix) with ESMTP id 6809B82004A;\n\tMon, 26 Nov 2012 17:21:55 -0800 (PST)", "by tictac.mtv.corp.google.com (Postfix, from userid 121310)\n\tid 282E080550; Mon, 26 Nov 2012 17:21:55 -0800 (PST)" ], "X-Virus-Scanned": [ "Debian amavisd-new at theia.denx.de", "Debian amavisd-new at theia.denx.de" ], "X-Greylist": "delayed 1396 seconds by postgrey-1.27 at theia;\n\tTue, 27 Nov 2012 02:45:11 CET", "X-policyd-weight": "NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5\n\tNOT_IN_BL_NJABL=-1.5 (only DNSBL check requested)", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=google.com; s=20120113;\n\th=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references\n\t:x-gm-message-state;\n\tbh=AES/EWMT4BD7Ua9I/GUCbh0MXAFG7jgtZXQC3lIfZnw=;\n\tb=R01n95uQCnHoQQX5EQHw2m8tKqObvtZPscYKB7oBR0TDk5w4kE6wyW9iM3wER2JSoh\n\tvusbCFjD30Z0uzM6JZ4kNUrsHEvOcGahAflqwR0C76q98xCnQtAsd2AGt0diDumcur7z\n\tKz7927kYqHWqzivDcU5XuY00vrIHtzR2IxK2yjn0hl5A3cJ7s4TIeXul8mVL3CMK4gQM\n\tajuMyD5chaDBgb51S83GUhQ8iQ2Uxe/eroveAIULblTdpzwE/Pvc/lk+kxgAhLsqYRQx\n\t2hqQtlv3Wpvy2sQhxdDhswtabUnVkMnFTXIgDoaGL7qbMrRmPkJssGRkEJS3wIEKqq7V\n\t5VkQ==", "From": "Doug Anderson <dianders@chromium.org>", "To": "Simon Glass <sjg@chromium.org>", "Date": "Mon, 26 Nov 2012 17:21:40 -0800", "Message-Id": "<1353979300-13927-2-git-send-email-dianders@chromium.org>", "X-Mailer": "git-send-email 1.7.7.3", "In-Reply-To": "<1353979300-13927-1-git-send-email-dianders@chromium.org>", "References": "<1353979300-13927-1-git-send-email-dianders@chromium.org>", "X-Gm-Message-State": "ALoCoQmn92TYOzBPUFMm5z171W4BWgCBY8eBhjzi1Rkrh3Ra2z/rehv99Clpf7aCPM4lbX3gVYWV77KORery62R7qQg2jTw5FwCZaE1mzTjvb6OH0BPBM5OTpr2CDWlHZ5c896STVe7EqXJ2a2k0o+FBIMRdWmYIyeoOc27SSA8XfF8EZYBlLKL0FgyMU9RBX9AsZDbHUWiE", "Cc": "u-boot@lists.denx.de", "Subject": "[U-Boot] [PATCH 2/2] patman: Allow tests to run even if patman is\n\tin the path", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.11", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<http://lists.denx.de/mailman/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<http://lists.denx.de/pipermail/u-boot>", "List-Post": "<mailto:u-boot@lists.denx.de>", "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>", "List-Subscribe": "<http://lists.denx.de/mailman/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Sender": "u-boot-bounces@lists.denx.de", "Errors-To": "u-boot-bounces@lists.denx.de" }, "content": "Several of the patman doctests assume that patman was run with:\n ./patman\n\nFix them so that they work even if patman is run with just \"patman\"\n(because patman is in the path).\n\nSigned-off-by: Doug Anderson <dianders@chromium.org>\n---\n tools/patman/gitutil.py | 11 +++++++++--\n 1 files changed, 9 insertions(+), 2 deletions(-)", "diff": "diff --git a/tools/patman/gitutil.py b/tools/patman/gitutil.py\nindex 72d37a0..41a74a5 100644\n--- a/tools/patman/gitutil.py\n+++ b/tools/patman/gitutil.py\n@@ -217,6 +217,10 @@ def EmailPatches(series, cover_fname, args, dry_run, cc_fname,\n Returns:\n Git command that was/would be run\n \n+ # For the duration of this doctest pretend that we ran patman with ./patman\n+ >>> _old_argv0 = sys.argv[0]\n+ >>> sys.argv[0] = './patman'\n+\n >>> alias = {}\n >>> alias['fred'] = ['f.bloggs@napier.co.nz']\n >>> alias['john'] = ['j.bloggs@napier.co.nz']\n@@ -244,6 +248,9 @@ def EmailPatches(series, cover_fname, args, dry_run, cc_fname,\n 'git send-email --annotate --to \"f.bloggs@napier.co.nz\" --cc \\\n \"f.bloggs@napier.co.nz\" --cc \"j.bloggs@napier.co.nz\" --cc \\\n \"m.poppins@cloud.net\" --cc-cmd \"./patman --cc-cmd cc-fname\" cover p1 p2'\n+\n+ # Restore argv[0] since we clobbered it.\n+ >>> sys.argv[0] = _old_argv0\n \"\"\"\n to = BuildEmailList(series.get('to'), '--to', alias)\n if not to:\n@@ -340,8 +347,8 @@ def GetTopLevel():\n \n This test makes sure that we are running tests in the right subdir\n \n- >>> os.path.realpath(os.getcwd()) == \\\n- os.path.join(GetTopLevel(), 'tools', 'scripts', 'patman')\n+ >>> os.path.realpath(os.path.dirname(__file__)) == \\\n+ os.path.join(GetTopLevel(), 'tools', 'patman')\n True\n \"\"\"\n return command.OutputOneLine('git', 'rev-parse', '--show-toplevel')\n", "prefixes": [ "U-Boot", "2/2" ] }