svn commit: r246975 - user/bugmeister/gnats/tools

Mark Linimon linimon at FreeBSD.org
Tue Feb 19 02:47:45 UTC 2013


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\]'


More information about the svn-src-user mailing list