Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/65242/?format=api
http://patches.dpdk.org/api/patches/65242/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200128150256.14339-2-ciara.power@intel.com/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20200128150256.14339-2-ciara.power@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200128150256.14339-2-ciara.power@intel.com", "date": "2020-01-28T15:02:55", "name": "[1/2] devtools: standardize script arguments", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "cf08a141bc9b6fa8075dc5485d2b3b5d4d60ccfc", "submitter": { "id": 978, "url": "http://patches.dpdk.org/api/people/978/?format=api", "name": "Power, Ciara", "email": "ciara.power@intel.com" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200128150256.14339-2-ciara.power@intel.com/mbox/", "series": [ { "id": 8324, "url": "http://patches.dpdk.org/api/series/8324/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=8324", "date": "2020-01-28T15:02:54", "name": "standardize devtools check scripts", "version": 1, "mbox": "http://patches.dpdk.org/series/8324/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/65242/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/65242/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 2ECAFA04B3;\n\tTue, 28 Jan 2020 16:22:21 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id E081C1C43D;\n\tTue, 28 Jan 2020 16:22:12 +0100 (CET)", "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n by dpdk.org (Postfix) with ESMTP id B2DD41C2FB\n for <dev@dpdk.org>; Tue, 28 Jan 2020 16:22:09 +0100 (CET)", "from orsmga007.jf.intel.com ([10.7.209.58])\n by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n 28 Jan 2020 07:13:50 -0800", "from silpixa00399953.ir.intel.com (HELO\n silpixa00399953.ger.corp.intel.com) ([10.237.222.53])\n by orsmga007.jf.intel.com with ESMTP; 28 Jan 2020 07:13:49 -0800" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.70,374,1574150400\"; d=\"scan'208\";a=\"217636681\"", "From": "Ciara Power <ciara.power@intel.com>", "To": "thomas@monjalon.net", "Cc": "dev@dpdk.org,\n\tCiara Power <ciara.power@intel.com>", "Date": "Tue, 28 Jan 2020 15:02:55 +0000", "Message-Id": "<20200128150256.14339-2-ciara.power@intel.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20200128150256.14339-1-ciara.power@intel.com>", "References": "<20200128150256.14339-1-ciara.power@intel.com>", "Subject": "[dpdk-dev] [PATCH 1/2] devtools: standardize script arguments", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "This patch modifies the arguments expected by the check-git-log script,\nto match the format of arguments for the checkpatches script. Both\nscripts now take certain argument options in the same format, making\nthem easier to use.\ne.g. Both now take a commit ID range by \"-r <range>\"\n\nThe checkpatches help print is also updated to include the \"-h\" option.\n\nSigned-off-by: Ciara Power <ciara.power@intel.com>\n---\n devtools/check-git-log.sh | 31 +++++++++++++++++++++++--------\n devtools/checkpatches.sh | 2 +-\n 2 files changed, 24 insertions(+), 9 deletions(-)", "diff": "diff --git a/devtools/check-git-log.sh b/devtools/check-git-log.sh\nindex f9d055039..22b2a6d84 100755\n--- a/devtools/check-git-log.sh\n+++ b/devtools/check-git-log.sh\n@@ -7,23 +7,38 @@\n # If any doubt about the formatting, please check in the most recent history:\n #\tgit log --format='%>|(15)%cr %s' --reverse | grep -i <pattern>\n \n-if [ \"$1\" = '-h' -o \"$1\" = '--help' ] ; then\n+print_usage () {\n \tcat <<- END_OF_HELP\n-\tusage: $(basename $0) [-h] [range]\n+\tusage: $(basename $0) [-h] [-nX|-r range]\n \n \tCheck commit log formatting.\n-\tThe git range can be specified as a \"git log\" option,\n-\te.g. -1 to check only the latest commit.\n-\tThe default range starts from origin/master to HEAD.\n+\tThe git commits to be checked can be specified as a \"git log\" option,\n+\tby latest git commits limited with -n option, or commits in the git\n+\trange specified with -r option.\n+\te.g. -n1 to check only the latest commit.\n+\tThe default starts from origin/master to HEAD.\n \tEND_OF_HELP\n \texit\n-fi\n+}\n \n selfdir=$(dirname $(readlink -f $0))\n range=${1:-origin/master..}\n+\n+if [ \"$range\" = '--help' ] ; then\n+\tprint_usage\n # convert -N to HEAD~N.. in order to comply with git-log-fixes.sh getopts\n-if printf -- $range | grep -q '^-[0-9]\\+' ; then\n-\trange=\"HEAD$(printf -- $range | sed 's,^-,~,')..\"\n+elif printf -- \"$range\" | grep -q '^-[0-9]\\+' ; then\n+\trange=\"HEAD$(printf -- \"$range\" | sed 's,^-,~,')..\"\n+else\n+\twhile getopts hr:n: ARG ; do\n+\t\tcase $ARG in\n+\t\t\tn ) range=\"HEAD~$OPTARG..\" ;;\n+\t\t\tr ) range=$OPTARG ;;\n+\t\t\th ) print_usage ; exit 0 ;;\n+\t\t\t? ) print_usage ; exit 1 ;;\n+\t\tesac\n+\tdone\n+\tshift $(($OPTIND - 1))\n fi\n \n commits=$(git log --format='%h' --reverse $range)\ndiff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh\nindex b16bace92..084191984 100755\n--- a/devtools/checkpatches.sh\n+++ b/devtools/checkpatches.sh\n@@ -38,7 +38,7 @@ options=\"$options $DPDK_CHECKPATCH_OPTIONS\"\n \n print_usage () {\n \tcat <<- END_OF_HELP\n-\tusage: $(basename $0) [-q] [-v] [-nX|-r range|patch1 [patch2] ...]]\n+\tusage: $(basename $0) [-h] [-q] [-v] [-nX|-r range|patch1 [patch2] ...]\n \n \tRun Linux kernel checkpatch.pl with DPDK options.\n \tThe environment variable DPDK_CHECKPATCH_PATH must be set.\n", "prefixes": [ "1/2" ] }{ "id": 65242, "url": "