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

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


Author: linimon (doc,ports committer)
Date: Tue Feb 19 02:45:30 2013
New Revision: 246974
URL: http://svnweb.freebsd.org/changeset/base/246974

Log:
  linimon-authored utilities to scrape magic strings of the form [tag] from
  PR synopses and allow reports and queries to be made.
  
  Tags are a workaround for the absence of a lot of functionality in GNATS.
  Any GNATS replacement should include some kind of ability to embed this
  kind of metadata without hacks like this.

Added:
  user/bugmeister/gnats/tools/getalltags   (contents, props changed)
  user/bugmeister/gnats/tools/getalltags.short   (contents, props changed)
  user/bugmeister/gnats/tools/showalltags   (contents, props changed)
  user/bugmeister/gnats/tools/showalltags.short   (contents, props changed)
  user/bugmeister/gnats/tools/showallwithouttags   (contents, props changed)
  user/bugmeister/gnats/tools/showwithtag   (contents, props changed)

Added: user/bugmeister/gnats/tools/getalltags
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ user/bugmeister/gnats/tools/getalltags	Tue Feb 19 02:45:30 2013	(r246974)
@@ -0,0 +1,11 @@
+#!/bin/sh
+#
+# get a list of all tags in GNATS Synopses
+#
+# author: linimon
+#
+query-pr -i -x -t '^\['  | \
+  cut -f 3 -d \| | \
+  tr "[:upper:]" "[:lower:]" | \
+  sed -e "s@\].*@@;s@\[@@;s@^ @@g;s@ \$@@g" | \
+  sort

Added: user/bugmeister/gnats/tools/getalltags.short
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ user/bugmeister/gnats/tools/getalltags.short	Tue Feb 19 02:45:30 2013	(r246974)
@@ -0,0 +1,47 @@
+#!/bin/sh
+#
+# get list of all tags in GNATS Synopses, but with things that aren't
+# legitimate classifications pruned
+#
+# author: linimon
+#
+/home/gnats/tools/getalltags | \
+  grep -v "/" | \
+  grep -v "^boot$" | \
+  grep -v "bug" | \
+  grep -v "build" | \
+  grep -v "crash" | \
+  grep -v "^deps$" | \
+  grep -v "^error" | \
+  grep -v "feature" | \
+  grep -v "fix" | \
+  grep -v "freeze" | \
+  grep -v "hang" | \
+  grep -v "^install$" | \
+  grep -v "^lor$" | \
+  grep -v "maintainer" | \
+  grep -v "^new$" | \
+  grep -v "^new driver" | \
+  grep -v "^new port" | \
+  grep -v "^new util$" | \
+  grep -v "panic" | \
+  grep -v "partial" | \
+  grep -v "patch" | \
+  grep -v "ports" | \
+  grep -v "proposal" | \
+  grep -v "quirk" | \
+  grep -v "^race" | \
+  grep -v "reboot" | \
+  grep -v "regression" | \
+  grep -v "repo copy" | \
+  grep -v "repocopy" | \
+  grep -v "request" | \
+  grep -v "^rfc" | \
+  grep -v "^rfe" | \
+  grep -v "security" | \
+  grep -v "timeout" | \
+  grep -v "trap" | \
+  grep -v "unbreak" | \
+  grep -v "update" | \
+  grep -v "wish" | \
+  grep -v "workaround"

Added: user/bugmeister/gnats/tools/showalltags
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ user/bugmeister/gnats/tools/showalltags	Tue Feb 19 02:45:30 2013	(r246974)
@@ -0,0 +1,7 @@
+#!/bin/sh
+#
+# show a list of all tags in GNATS Synopses
+#
+# author: linimon
+#
+/home/gnats/tools/getalltags | uniq -c -i

Added: user/bugmeister/gnats/tools/showalltags.short
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ user/bugmeister/gnats/tools/showalltags.short	Tue Feb 19 02:45:30 2013	(r246974)
@@ -0,0 +1,8 @@
+#!/bin/sh
+#
+# show a list of all tags in GNATS Synopses, but with things that aren't
+# legitimate classifications pruned
+#
+# author: linimon
+#
+/home/gnats/tools/getalltags.short | uniq -c -i

Added: user/bugmeister/gnats/tools/showallwithouttags
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ user/bugmeister/gnats/tools/showallwithouttags	Tue Feb 19 02:45:30 2013	(r246974)
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+# Show all (non-ports/www/docs) PRs that do not appear to contain a
+# subsystem tag in their title
+
+query-pr -q -x | \
+  awk '$3 !~ /ports|www|docs/ { print }' | \
+  sed 's/\[patch\]//Ig;s/\[request\]//Ig' | \
+  egrep -v '\([123456789]\)|\[*\]'

Added: user/bugmeister/gnats/tools/showwithtag
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ user/bugmeister/gnats/tools/showwithtag	Tue Feb 19 02:45:30 2013	(r246974)
@@ -0,0 +1,7 @@
+#!/bin/sh
+#
+# show all the PRs corresponding to 'tag'.
+#
+# author: linimon
+#
+query-pr -i -x -t '\['$1'\]'


More information about the svn-src-user mailing list