Page History
Just some notes on where I'm going with #183. Currently, I'm just playing with trivial things that can be done from the command-line. Custom processor scripts would make things way more powerful. And don't forget that scripts have access to QUERY_STRING, so being able to build CGI-type forms should be feasible.
Files
CVS Blame
permissions asio, command line:
/usr/bin/cvs -n -d '%RP' rannotate -r `expr '%V1' \| HEAD` '%F' 2>&1
Directories
ChangeLog
permissions asoi, command line:
/usr/bin/cvs -d '%RP' rlog '%F' 2>/dev/null | /usr/bin/cvs2cl --stdin --stdout --rcs '%RP' 2>&1
Note that cvs2cl only handles the --rcs style when there's no trailing '/' in the repository path.
Tickets
Close Ticket
permissions asw, command line:
/usr/bin/sqlite3 '%RP/%P.db' "UPDATE ticket SET status='closed' WHERE tn='%TN';"
The user gets redirected back to /tktview since there's no output. Unless there's a failure.
Check-ins
Pass/Fail
permissions asi, command-line:
/usr/bin/sqlite3 '%RP/%P.db' "INSERT INTO inspect(cn,inspecttime,inspector,result) VALUES('%CN','%N','%U','failed|passed')"
The user gets redirected back to /chngview since there's no output. Unless there's a failure.
Wiki
Formatting
permissions asj. Different from /wiki.txt in that the output is inlined into
the CVSTrac page, not just as straight text/plain
.
echo '<pre>' && cat '%C' && echo '</pre>'
Attachments:
- cvstrac_graphvers.pl 3351 bytes added by cpb on 2006-Mar-05 23:15:18 UTC.
Script to show a graphical revision tree of a file in a CVSTrac database. Requires a reasonably recent version of Graph::Easy.
- cvstrac_wikicomment.pl 3301 bytes added by cpb on 2006-Mar-08 01:26:38 UTC.
Requiresexternal_tools_3.patch
. Generates an interactive form for a Wiki comment.
- cvstrac_wikispam.pl 3129 bytes added by cpb on 2006-Mar-08 02:16:30 UTC.
A little tool for managing wiki spam. Allows users to move the wiki edit into a "spam" table. Maybe useful if you don't want to risk just handing out "delete" permissions. Otherwise, more demo code.
- cvstrac_tktdupe.pl 4272 bytes added by cpb on 2006-Mar-25 16:41:51 UTC.
Tool for marking tickets as duplicates of others.
- cvstrac_chngsync.pl 2214 bytes added by cpb on 2006-May-23 00:14:56 UTC.
Script to sync a CVSTrac check-in message back to the CVS repository.