cvs: SVNROOT / run-conversion.php
| From: | Gwynne Raskind | Date: | Mon, 10 Nov 2008 02:21:48 +0000 |
| Subject: | cvs: SVNROOT / run-conversion.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-54111@lists.php.net to get a copy of this message | ||
gwynne Mon Nov 10 02:21:48 2008 UTC
Modified files:
/SVNROOT run-conversion.php
Log:
parse the date correctly for mercy's sake
http://cvs.php.net/viewvc.cgi/SVNROOT/run-conversion.php?r1=1.36&r2=1.37&diff_format=u
Index: SVNROOT/run-conversion.php
diff -u SVNROOT/run-conversion.php:1.36 SVNROOT/run-conversion.php:1.37
--- SVNROOT/run-conversion.php:1.36 Mon Nov 10 02:12:52 2008
+++ SVNROOT/run-conversion.php Mon Nov 10 02:21:48 2008
@@ -7,7 +7,7 @@
//
-----------------------------------------------------------------------------------------------------------------------------
// Constants
-$version = substr('$Revision: 1.36 $', strlen('$Revision: '), -2);
+$version = substr('$Revision: 1.37 $', strlen('$Revision: '), -2);
$passes = array(
'processcvs', // Process CVS modules
@@ -551,14 +551,14 @@
$realTag = substr($tag, 0, -1);
$xml = run_command('exec svn info --xml file:///' .
escapeshellarg($GLOBALS['options']['svnroot'] .
'/php-src/php-src/tags/' . $realTag));
$xml = implode("\n", $xml);
- $tagList[$realTag] = strtotime(substr($xml, strpos($xml, '<date>') + 6,
strpos($xml, '</date>')));
+ $tagList[$realTag] = strtotime(substr($xml, strpos($xml, '<date>') + 6,
strlen('0000-00-00T00:00:00.000000Z')));
run_command('exec svn propdel svn:externals ' . escapeshellarg('tags' .
DIRECTORY_SEPARATOR . $realTag . DIRECTORY_SEPARATOR . 'ext') . ' 2>&1');
}
foreach ($rawBranchList as $branch) {
$realBranch = substr($branch, 0, -1);
$xml = run_command('exec svn info --xml file:///' .
escapeshellarg($GLOBALS['options']['svnroot'] .
'/php-src/php-src/branches/' . $realBranch));
$xml = implode("\n", $xml);
- $branchList[$realBranch] = strtotime(substr($xml, strpos($xml, '<date>') +
6, strpos($xml, '</date>')));
+ $branchList[$realBranch] = strtotime(substr($xml, strpos($xml, '<date>') +
6, strlen('0000-00-00T00:00:00.000000Z')));
run_command('exec svn propdel svn:externals ' .
escapeshellarg('branches' . DIRECTORY_SEPARATOR . $realBranch . DIRECTORY_SEPARATOR .
'ext') . ' 2>&1');
}
run_command('exec svn propdel svn:externals ' . escapeshellarg('trunk' .
DIRECTORY_SEPARATOR . 'ext') . ' 2>&1');