~fenner/bin on freefall
I've written some handy and/or random stuff, that it makes sense to document.
- close-pr pr#
- Takes a single PR number on the command line, and changes its
state to closed (with the help of close-pr.helper).
This simply eliminates the editing phase of searching for the state
and changing it to closed.
- take-pr pr#
- Takes a single PR number on the command line, and changes
its owner to the user running the script. (with the help
of take-pr.helper). This simply eliminates the
editing phase of searching for the responsible party and
changing it to yourself.
- This is a cron job that I run that tries to figure out what
port all of the ports PRs are associated with. The output of
this script is quite unceremoniously dumped in
A text version is also available in
Please don't run it yourself.
- qprf category/PR#
- A fast replacement for query-pr --full. I meant to finish
tacking this into query-pr.cgi but never got around to it.
- Shortly after the unified diff format came out, I stopped
being able to read context diffs. This script turns context
diffs into unidiffs so that I can read them.
- bco branch module
- I wrote this when there were kind of 3 branches active
(5, 4, 3); it's not incredibly useful now, but hey. It checks
out module from branch RELENG_branch
into a directory named module-branch. e.g.
bco 4 sys_kern simply does
cvs co -rRELENG_4 -d sys_kern-4 sys_kern.
- If you forget to tag a branch point for a branch tag, this
can do it for you. (e.g. you make the tag
RELENG_4_5 but you forgot to make RELENG_4_5_BP).
It doesn't actually perform the action; maybe it's not finished yet.
- whodid filename
- Run in a checked-out tree, outputs the top 8 committers to
filename. Useful to find out who you might want to
contact to review a patch to a subsystem if there's no
MAINTAINER, README or other indication.
Uncategorized or useless: