From owner-svn-src-user@FreeBSD.ORG Tue Feb 19 02:47:45 2013 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B2D3C2C7; Tue, 19 Feb 2013 02:47:45 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 890EE735; Tue, 19 Feb 2013 02:47:45 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r1J2ljEO022339; Tue, 19 Feb 2013 02:47:45 GMT (envelope-from linimon@svn.freebsd.org) Received: (from linimon@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r1J2ljKm022336; Tue, 19 Feb 2013 02:47:45 GMT (envelope-from linimon@svn.freebsd.org) Message-Id: <201302190247.r1J2ljKm022336@svn.freebsd.org> From: Mark Linimon Date: Tue, 19 Feb 2013 02:47:45 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r246975 - user/bugmeister/gnats/tools X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Feb 2013 02:47:45 -0000 Author: linimon (doc,ports committer) Date: Tue Feb 19 02:47:44 2013 New Revision: 246975 URL: http://svnweb.freebsd.org/changeset/base/246975 Log: linimon-authored scripts to work with [tag] metadata hacked into GNATS PRs. Added: user/bugmeister/gnats/tools/show-random-pr (contents, props changed) user/bugmeister/gnats/tools/show-random-unassigned-pr (contents, props changed) user/bugmeister/gnats/tools/showwithpatches (contents, props changed) Added: user/bugmeister/gnats/tools/show-random-pr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ user/bugmeister/gnats/tools/show-random-pr Tue Feb 19 02:47:44 2013 (r246975) @@ -0,0 +1,21 @@ +#!/bin/sh +# +# pick a random PR with the tag 'tag' and possibly in category 'category'. +# $1: tag. $2: category. +# +# author: linimon +# +if [ -z "$1" ]; then + TAG=patch +else + TAG=$1 +fi +if [ -z "$2" ]; then + CATEGORY=kern +else + CATEGORY=$2 +fi +# +query-pr -c $CATEGORY -t "\["$TAG"\]" -q -x | \ + /usr/games/random -f - | \ + head -1 Added: user/bugmeister/gnats/tools/show-random-unassigned-pr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ user/bugmeister/gnats/tools/show-random-unassigned-pr Tue Feb 19 02:47:44 2013 (r246975) @@ -0,0 +1,21 @@ +#!/bin/sh +# +# pick a random PR with the tag 'tag' and possibly in category 'category'. +# $1: tag. $2: category. +# +# author: linimon +# +if [ -z "$1" ]; then + TAG=patch +else + TAG=$1 +fi +if [ -z "$2" ]; then + CATEGORY=kern +else + CATEGORY=$2 +fi +# +query-pr -c $CATEGORY -t "\["$TAG"\]" -q -x -r freebsd-bugs | \ + /usr/games/random -f - | \ + head -1 Added: user/bugmeister/gnats/tools/showwithpatches ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ user/bugmeister/gnats/tools/showwithpatches Tue Feb 19 02:47:44 2013 (r246975) @@ -0,0 +1,7 @@ +#!/bin/sh +# +# show all PRs with the tag [patch] +# +# author: linimon +# +query-pr -i -x -t '\[patch\]'