From 9c21754d526e24256822d12e8d3c030558b852ff Mon Sep 17 00:00:00 2001 From: connor Date: Wed, 27 Mar 2024 12:42:35 +0100 Subject: [PATCH] cleanup old changelog script --- data/bin/changelog.php | 48 ------------------------------------------ 1 file changed, 48 deletions(-) delete mode 100644 data/bin/changelog.php diff --git a/data/bin/changelog.php b/data/bin/changelog.php deleted file mode 100644 index 6a3218a4b..000000000 --- a/data/bin/changelog.php +++ /dev/null @@ -1,48 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/** - * Outputs formatted Subversion log entries. - * - * Usage: php data/bin/changelog.php -r12345:67890 /branches/1.3 - * - * @author Fabien Potencier - * - * @version SVN: $Id$ - */ -require_once __DIR__.'/../../lib/task/sfFilesystem.class.php'; - -if (!isset($argv[1])) { - echo "You must provide a revision range (-r123:456)\n"; - - exit(1); -} - -if (!isset($argv[2])) { - echo "You must provide a repository path (/branches/1.4)\n"; - - exit(1); -} - -$filesystem = new sfFilesystem(); - -list($out, $err) = $filesystem->execute('svn info --xml'); -$info = new SimpleXMLElement($out); - -list($out, $err) = $filesystem->execute(vsprintf('svn log %s --xml %s', array_map('escapeshellarg', [ - $argv[1], - (string) $info->entry->repository->root.$argv[2], -]))); -$log = new SimpleXMLElement($out); - -foreach ($log->logentry as $logentry) { - echo sprintf(' * [%d] %s', $logentry['revision'], trim(preg_replace('/\s*\[[\d\., ]+\]\s*/', '', (string) $logentry->msg))); - echo PHP_EOL; -}