Author: Derick Rethans Date: 2006-10-09 09:04:59 +0200 (Mon, 09 Oct 2006) New Revision: 3663
Log: - Added a utility script for running code coverage with cron - Added a utility script for creating patches between an old revision for a component. Added: scripts/code-coverage-cron.sh scripts/create-patches.php Added: scripts/code-coverage-cron.sh =================================================================== --- scripts/code-coverage-cron.sh 2006-10-09 07:03:06 UTC (rev 3662) +++ scripts/code-coverage-cron.sh 2006-10-09 07:04:59 UTC (rev 3663) @@ -0,0 +1,5 @@ +#!/bin/sh + +cd trunk +svn up >/dev/null 2>&1 +/usr/local/bin/php UnitTest/src/runtests.php -c /home/httpd/html/components/codecoverage -D sqlite://:memory: >/dev/null 2>&1 Property changes on: scripts/code-coverage-cron.sh ___________________________________________________________________ Name: svn:executable + * Name: svn:eol-style + native Added: scripts/create-patches.php =================================================================== --- scripts/create-patches.php 2006-10-09 07:03:06 UTC (rev 3662) +++ scripts/create-patches.php 2006-10-09 07:04:59 UTC (rev 3663) @@ -0,0 +1,20 @@ +<?php + $component = $argv[1]; + $rev = $argv[2]; + + $list = split( "\n", `svn log -r "$rev":HEAD trunk/$component | egrep "^r"` ); + + unlink( '/tmp/log' ); + + foreach ( $list as $entry ) + { + preg_match( '@^r([0-9]+)@', $entry, $m ); + if ( $m[1] ) + { + $rev = $m[1]; + $pRev = $rev - 1; + `svn log -r $rev >> /tmp/log`; + `svn diff -r $pRev:$rev | colordiff >> /tmp/log`; + `svn diff -r $pRev:$rev > /tmp/patch-r$rev.diff.txt`; + } + } Property changes on: scripts/create-patches.php ___________________________________________________________________ Name: svn:eol-style + native -- svn-components mailing list svn-components@lists.ez.no http://lists.ez.no/mailman/listinfo/svn-components